![]() |
Cadabra
Computer algebra system for field theory problems
|
Python wrapper around the C++ core module, making the entire functionality of Cadabra accessible from Python.
This consists of two parts. One is core/cadabra2_defaults.py, which is a pure-python file. It contains the display function to show Cadabra objects to the user in a UI-independent way (e.g. switching between a text representation on the command line and a LaTeX representation when running in a notebook). The other part is core/PythonCdb.cc, which builds the cadabra2 module for python, to be imported with 'from cadabra2 import *'.
Files | |
file | cadabra2_defaults.py |
Cadabra2 pure Python functionality. | |
Functions | |
void | pull_in (std::shared_ptr< cadabra::Ex > ex, cadabra::Kernel *) |
Replace any objects of the form '@(...)' in the expression tree by the python expression '...' if it exists. More... | |
void pull_in | ( | std::shared_ptr< cadabra::Ex > | ex, |
cadabra::Kernel * | |||
) |
Replace any objects of the form '@(...)' in the expression tree by the python expression '...' if it exists.
Rename dummies to avoid clashes.