![]() |
Cadabra
Computer algebra system for field theory problems
|
Functions to pass scalar expressions to/from SymPy and manipulate them there.
Functions | |
cadabra::Ex::iterator | sympy::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. More... | |
void | sympy::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. More... | |
void | sympy::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 components. More... | |
cadabra::Ex::iterator sympy::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.
This is a higher-level function than 'apply' below.
Functionality to act with Sympy functions on (parts of) Cadabra Ex expressions and read the result back into the same Ex. This duplicates some of the logic in PythonCdb.hh, in particular make_Ex_from_string, but it is best to keep these two completely separate.
void sympy::determinant | ( | const cadabra::Kernel & | 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 components.
Will add the rules to the list.
void sympy::invert_matrix | ( | const cadabra::Kernel & | 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.
Will return a set of Cadabra rules for the inverse matrix.