Cadabra
Computer algebra system for field theory problems
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
cadabra::Kernel Class Reference

#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. More...
 
std::shared_ptr< Exex_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

static const std::string version = CADABRA_VERSION_FULL
 
static const std::string build = CADABRA_VERSION_BUILD
 

Member Enumeration Documentation

◆ scalar_backend_t

Settings.

Enumerator
sympy 
mathematica 

◆ warn_t

Enumerator
notset 
debug 
info 
warning 
error 
critical 

Constructor & Destructor Documentation

◆ Kernel() [1/2]

Kernel::Kernel ( bool  inject_defaults = true)

◆ Kernel() [2/2]

cadabra::Kernel::Kernel ( const Kernel other)
delete

◆ ~Kernel()

Kernel::~Kernel ( )

Member Function Documentation

◆ ex_from_string()

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.

◆ inject_property()

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.

◆ warn()

void Kernel::warn ( const std::string &  msg,
Kernel::warn_t  level = warn_t::warning 
) const

Member Data Documentation

◆ build

const std::string Kernel::build = CADABRA_VERSION_BUILD
static

◆ call_embedded_python_functions

bool cadabra::Kernel::call_embedded_python_functions

◆ display_fractions

bool cadabra::Kernel::display_fractions

◆ properties

Properties cadabra::Kernel::properties

◆ scalar_backend

enum cadabra::Kernel::scalar_backend_t cadabra::Kernel::scalar_backend

◆ version

const std::string Kernel::version = CADABRA_VERSION_FULL
static

◆ warning_callback

std::function<void(const std::string&)> cadabra::Kernel::warning_callback

◆ warning_level

warn_t cadabra::Kernel::warning_level

The documentation for this class was generated from the following files: