Computer algebra system for field theory problems
Public Member Functions | Private Attributes | List of all members
sympy::SympyBridge Class Reference


Helper class to enable conversion from/to sympy.

#include <SympyCdb.hh>

Inheritance diagram for sympy::SympyBridge:
cadabra::DisplaySympy cadabra::DisplayBase

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::Exex

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 Extree
const Kernelkernel

Constructor & Destructor Documentation

◆ SympyBridge()

sympy::SympyBridge::SympyBridge ( const cadabra::Kernel k,
std::shared_ptr< cadabra::Ex ex 

◆ ~SympyBridge()

sympy::SympyBridge::~SympyBridge ( )

Member Function Documentation

◆ export_ex()

pybind11::object sympy::SympyBridge::export_ex ( )

◆ import_ex()

void sympy::SympyBridge::import_ex ( const std::string &  s)

Member Data Documentation

◆ ex

std::shared_ptr<cadabra::Ex> sympy::SympyBridge::ex

The documentation for this class was generated from the following files: