Cadabra
Computer algebra system for field theory problems
|
Helper class to enable conversion from/to sympy.
#include <SympyCdb.hh>
Public Member Functions | |
SympyBridge (const cadabra::Kernel &, std::shared_ptr< cadabra::Ex >) | |
virtual | ~SympyBridge () |
pybind11::object | export_ex () |
void | import_ex (const std::string &) |
Public Member Functions inherited from cadabra::DisplaySympy | |
DisplaySympy (const Kernel &, const Ex &) | |
void | import (Ex &) |
Rewrite the output of sympy back into a notation used by Cadabra. More... | |
std::string | preparse_import (const std::string &) |
Public Member Functions inherited from cadabra::DisplayBase | |
DisplayBase (const Kernel &, const Ex &) | |
void | output (std::ostream &) |
void | output (std::ostream &, Ex::iterator) |
Private Attributes | |
std::shared_ptr< cadabra::Ex > | ex |
Additional Inherited Members | |
Protected Member Functions inherited from cadabra::DisplaySympy | |
virtual bool | needs_brackets (Ex::iterator it) override |
Determine if a node needs extra brackets around it. More... | |
Protected Attributes inherited from cadabra::DisplayBase | |
const Ex & | tree |
const Kernel & | kernel |
sympy::SympyBridge::SympyBridge | ( | const cadabra::Kernel & | k, |
std::shared_ptr< cadabra::Ex > | ex | ||
) |
|
virtual |
pybind11::object sympy::SympyBridge::export_ex | ( | ) |
void sympy::SympyBridge::import_ex | ( | const std::string & | s | ) |
|
private |