11 #include <pybind11/pybind11.h>
28 std::shared_ptr<cadabra::Ex>
ex;
49 const std::vector<std::string>& wrap, std::vector<std::string> args,
const std::string& method);
Class to display expressions in a format that Sympy can parse.
Definition: DisplaySympy.hh:21
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:142
Helper class to enable conversion from/to sympy.
Definition: SympyCdb.hh:19
SympyBridge(const cadabra::Kernel &, std::shared_ptr< cadabra::Ex >)
Definition: SympyCdb.cc:19
void import_ex(const std::string &)
Definition: SympyCdb.cc:45
virtual ~SympyBridge()
Definition: SympyCdb.cc:24
pybind11::object export_ex()
Definition: SympyCdb.cc:28
std::shared_ptr< cadabra::Ex > ex
Definition: SympyCdb.hh:28
cadabra::Ex::iterator apply(const cadabra::Kernel &, cadabra::Ex &, cadabra::Ex::iterator &, const std::vector< std::string > &wrap, std::vector< std::string > args, const std::string &method)
Functionality to act with Sympy on all scalar parts of an expression, and keep the result in-place.
Definition: SympyDummy.cc:12
void invert_matrix(const cadabra::Kernel &, cadabra::Ex &ex, cadabra::Ex &rules, const cadabra::Ex &tocompute)
Use Sympy to invert a matrix, given a set of rules determining its sparse components.
Definition: SympyDummy.cc:56
void determinant(const cadabra::Kernel &, cadabra::Ex &ex, cadabra::Ex &rules, const cadabra::Ex &tocompute)
Use Sympy to compute the determinant of a matrix, given a set of rules determining its sparse compone...
Definition: SympyDummy.cc:62
Definition: SympyCdb.hh:14
cadabra::Ex fill_matrix(const cadabra::Kernel &, cadabra::Ex &ex, cadabra::Ex &rules)
Definition: SympyCdb.cc:151
void trace(const cadabra::Kernel &, cadabra::Ex &ex, cadabra::Ex &rules, const cadabra::Ex &tocompute)
Definition: SympyDummy.cc:67