![]() |
Cadabra
Computer algebra system for field theory problems
|
#include <Kernel.hh>
Public Types | |
| enum class | scalar_backend_t { sympy , mathematica } |
| Settings. More... | |
| enum class | warn_t { notset = 0 , debug = 10 , info = 20 , warning = 30 , error = 40 , 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. | |
| std::shared_ptr< Ex > | ex_from_string (const std::string &) |
| Create an Ex expression object from a string, which will be parsed. | |
| 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 | |
| static const std::string | version = CADABRA_VERSION_FULL |
| static const 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.
Transfers property ownership to the kernel.
| 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 |