Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
Public Member Functions | |
po::options_description | defineSpecificProgramOptions () override |
void | generateGraphviz (Node< double > &node, int nparams) |
std::map< int, std::pair< py::object, std::shared_ptr< Node< double > > > > | getFunctions () |
std::pair< std::vector< double >, Arguments > | createParameters (int n) |
void | runPython (boost::python::object func, const std::vector< double > &args) |
void | runCpp (const std::shared_ptr< Node< double > > &node, const Arguments &args) |
std::vector< double > | measure (std::function< void(void)> func) |
void | evalExamples () |
Elements::ExitCode | mainMethod (std::map< std::string, po::variable_value > &args) override |
![]() | |
Program ()=default | |
virtual | ~Program () |
virtual std::pair< OptionsDescription, PositionalOptionsDescription > | defineProgramArguments () |
virtual ExitCode | mainMethod (std::map< std::string, VariableValue > &args)=0 |
Private Attributes | |
int | m_threads |
int | m_repeats |
fs::path | m_dot_file |
Additional Inherited Members | |
![]() | |
typedef boost::program_options::options_description | options_description |
typedef boost::program_options::positional_options_description | positional_options_description |
typedef boost::program_options::variable_value | variable_value |
typedef boost::program_options::variables_map | variables_map |
typedef options_description | OptionsDescription |
typedef positional_options_description | PositionalOptionsDescription |
typedef variable_value | VariableValue |
typedef variables_map | VariablesMap |
typedef Elements::ExitCode | ExitCode |
typedef Elements::Logging | Logging |
Main program
Definition at line 60 of file Example.cpp.
|
inline |
Definition at line 135 of file Example.cpp.
Referenced by evalExamples().
|
inlineoverridevirtual |
Reimplemented from Elements::Program.
Definition at line 67 of file Example.cpp.
|
inline |
Definition at line 178 of file Example.cpp.
References createParameters(), std::endl(), std::fixed(), getFunctions(), Elements::Logging::info(), logger, m_threads, measure(), runCpp(), runPython(), std::setprecision(), and std::setw().
Referenced by mainMethod().
|
inline |
Definition at line 77 of file Example.cpp.
References Elements::Logging::info(), logger, m_dot_file, Pyston::GraphvizGenerator::str(), std::to_string(), and Pyston::NodeBase::visit().
Referenced by getFunctions().
|
inline |
Extract callables from Python, both Python and "compiled"
Definition at line 94 of file Example.cpp.
References generateGraphviz(), Elements::Logging::info(), logger, and std::make_pair().
Referenced by evalExamples().
|
inlineoverride |
Definition at line 212 of file Example.cpp.
References std::map< K, T >::at(), std::map< K, T >::count(), evalExamples(), m_dot_file, m_repeats, m_threads, PYSTON_MODULE_INIT, and Pyston::ExpressionTreeBuilder::registerFunction().
|
inline |
Definition at line 158 of file Example.cpp.
References std::vector< T >::emplace_back(), m_repeats, and m_threads.
Referenced by evalExamples().
|
inline |
|
inline |
|
private |
Definition at line 64 of file Example.cpp.
Referenced by generateGraphviz(), and mainMethod().
|
private |
Definition at line 63 of file Example.cpp.
Referenced by mainMethod(), measure(), runCpp(), and runPython().
|
private |
Definition at line 63 of file Example.cpp.
Referenced by evalExamples(), mainMethod(), and measure().