Cadabra
Computer algebra system for field theory problems
SympyCdb.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Props.hh"
5 #include "Storage.hh"
6 #include "Kernel.hh"
7 #include "Stopwatch.hh"
8 
9 namespace sympy {
10 
16 
17 // cadabra::Ex* map_sympy(const cadabra::Kernel&, cadabra::Ex&,
18 // const std::vector<std::string>& wrap, const std::string& args, const std::string& method);
19 
26 
27  cadabra::Ex::iterator apply(const cadabra::Kernel&, cadabra::Ex&, cadabra::Ex::iterator&,
28  const std::vector<std::string>& wrap, std::vector<std::string> args, const std::string& method);
29 
30 // /// \ingroup sympy
31 // ///
32 // /// Low-level function to feed a string to Python and read the result back in
33 // /// as a Cadabra Ex. As compared to 'apply' above, this starts from a string rather
34 // /// than an Ex, and hence gives more flexibility in constructing input.
35 //
36 // Ex python(Kernel&, Ex&, Ex::iterator&, const std::string& head, const std::string& args);
37 
38 
44 
45  void invert_matrix(const cadabra::Kernel&, cadabra::Ex& ex, cadabra::Ex& rules, const cadabra::Ex& tocompute);
46 
51 
52  void determinant(const cadabra::Kernel&, cadabra::Ex& ex, cadabra::Ex& rules, const cadabra::Ex& tocompute);
53  void trace(const cadabra::Kernel&, cadabra::Ex& ex, cadabra::Ex& rules, const cadabra::Ex& tocompute);
54 
56 // extern Stopwatch sympy_stopwatch;
57 
58 };
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: SympyCdb.cc:145
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:139
Definition: SympyCdb.hh:9
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: SympyCdb.cc:191
void trace(const cadabra::Kernel &, cadabra::Ex &ex, cadabra::Ex &rules, const cadabra::Ex &tocompute)
Definition: SympyCdb.cc:205
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...
cadabra::Ex fill_matrix(const cadabra::Kernel &, cadabra::Ex &ex, cadabra::Ex &rules)
Definition: SympyCdb.cc:96
Definition: Kernel.hh:14