![]() |
Cadabra
Computer algebra system for field theory problems
|
#include <Kernel.hh>
Public Types | |
enum | scalar_backend_t { scalar_backend_t::sympy, scalar_backend_t::mathematica } |
Settings. More... | |
enum | warn_t { warn_t::notset = 0, warn_t::debug = 10, warn_t::info = 20, warn_t::warning = 30, warn_t::error = 40, warn_t::critical = 50 } |
Public Member Functions | |
Kernel (bool inject_defaults=true) | |
Kernel (const Kernel &other)=delete | |
~Kernel () | |
void | inject_property (property *prop, std::shared_ptr< Ex > pattern, std::shared_ptr< Ex > property_arguments) |
Inject a property into the system and attach it to the given pattern. More... | |
std::shared_ptr< Ex > | ex_from_string (const std::string &) |
Create an Ex expression object from a string, which will be parsed. More... | |
void | warn (const std::string &msg, warn_t level=warn_t::warning) const |
Public Attributes | |
Properties | properties |
enum cadabra::Kernel::scalar_backend_t | scalar_backend |
bool | call_embedded_python_functions |
bool | display_fractions |
warn_t | warning_level |
std::function< void(const std::string &)> | warning_callback |
Static Public Attributes | |
const static std::string | version = CADABRA_VERSION_FULL |
const static std::string | build = CADABRA_VERSION_BUILD |
|
strong |
|
strong |
Kernel::Kernel | ( | bool | inject_defaults = true | ) |
|
delete |
Kernel::~Kernel | ( | ) |
std::shared_ptr< cadabra::Ex > Kernel::ex_from_string | ( | const std::string & | s | ) |
Create an Ex expression object from a string, which will be parsed.
void Kernel::inject_property | ( | property * | prop, |
std::shared_ptr< Ex > | pattern, | ||
std::shared_ptr< Ex > | property_arguments | ||
) |
Inject a property into the system and attach it to the given pattern.
void Kernel::warn | ( | const std::string & | msg, |
Kernel::warn_t | level = warn_t::warning |
||
) | const |
|
static |
bool cadabra::Kernel::call_embedded_python_functions |
bool cadabra::Kernel::display_fractions |
Properties cadabra::Kernel::properties |
enum cadabra::Kernel::scalar_backend_t cadabra::Kernel::scalar_backend |
|
static |
std::function<void(const std::string&)> cadabra::Kernel::warning_callback |
warn_t cadabra::Kernel::warning_level |