59 bool info(
unsigned inf)
const override;
82 bool info(
unsigned inf)
const override;
109 bool info(
unsigned inf)
const override;
141 bool info(
unsigned inf)
const override;
165 bool info(
unsigned inf)
const override;
Archiving of GiNaC expressions.
This class stores all properties needed to record/retrieve the state of one object of class basic (or...
This class is the ABC (abstract base class) of GiNaC's class hierarchy.
Wrapper template for making GiNaC classes out of STL containers.
Lightweight wrapper for GiNaC's symbolic objects.
This class represents a Minkowski metric tensor.
minkmetric(bool pos_sig)
Construct Lorentz metric tensor with given signature.
ex eval_indexed(const basic &i) const override
Automatic symbolic evaluation of an indexed Lorentz metric tensor.
void do_print(const print_context &c, unsigned level) const
bool pos_sig
If true, the metric is diag(-1,1,1...).
void archive(archive_node &n) const override
Save (a.k.a.
void read_archive(const archive_node &n, lst &syms) override
Read (a.k.a.
bool info(unsigned inf) const override
Information about the object.
void do_print_latex(const print_latex &c, unsigned level) const
unsigned return_type() const override
Base class for print_contexts.
Context for latex-parsable output.
@ noncommutative_composite
This class represents an antisymmetric spinor metric tensor which can be used to raise/lower indices ...
bool info(unsigned inf) const override
Information about the object.
ex eval_indexed(const basic &i) const override
Automatic symbolic evaluation of an indexed metric tensor.
void do_print_latex(const print_latex &c, unsigned level) const
void do_print(const print_context &c, unsigned level) const
bool contract_with(exvector::iterator self, exvector::iterator other, exvector &v) const override
Contraction of an indexed spinor metric with something else.
This class represents the delta tensor.
bool contract_with(exvector::iterator self, exvector::iterator other, exvector &v) const override
Contraction of an indexed delta tensor with something else.
unsigned return_type() const override
void do_print_latex(const print_latex &c, unsigned level) const
void do_print(const print_context &c, unsigned level) const
bool info(unsigned inf) const override
Information about the object.
ex eval_indexed(const basic &i) const override
Automatic symbolic evaluation of an indexed delta tensor.
This class represents the totally antisymmetric epsilon tensor.
void do_print_latex(const print_latex &c, unsigned level) const
bool minkowski
If true, tensor is in Minkowski-type space.
bool pos_sig
If true, the metric is assumed to be diag(-1,1,1...).
void read_archive(const archive_node &n, lst &syms) override
Read (a.k.a.
unsigned return_type() const override
bool contract_with(exvector::iterator self, exvector::iterator other, exvector &v) const override
Contraction of epsilon tensor with something else.
bool info(unsigned inf) const override
Information about the object.
void do_print(const print_context &c, unsigned level) const
tensepsilon(bool minkowski, bool pos_sig)
void archive(archive_node &n) const override
Save (a.k.a.
ex eval_indexed(const basic &i) const override
Automatic symbolic evaluation of an indexed epsilon tensor.
This class represents a general metric tensor which can be used to raise/lower indices.
bool info(unsigned inf) const override
Information about the object.
unsigned return_type() const override
void do_print(const print_context &c, unsigned level) const
ex eval_indexed(const basic &i) const override
Automatic symbolic evaluation of an indexed metric tensor.
bool contract_with(exvector::iterator self, exvector::iterator other, exvector &v) const override
Contraction of an indexed metric tensor with something else.
This class holds one of GiNaC's predefined special tensors such as the delta and the metric tensors.
unsigned return_type() const override
bool replace_contr_index(exvector::iterator self, exvector::iterator other) const
Replace dummy index in contracted-with object by the contracting object's second index (used internal...
Interface to GiNaC's light-weight expression handles.
ex spinor_metric(const ex &i1, const ex &i2)
Create a spinor metric tensor with specified indices.
ex metric_tensor(const ex &i1, const ex &i2)
Create a symmetric metric tensor with specified indices.
GINAC_DECLARE_UNARCHIVER(add)
ex delta_tensor(const ex &i1, const ex &i2)
Create a delta tensor with specified indices.
ex lorentz_eps(const ex &i1, const ex &i2, const ex &i3, const ex &i4, bool pos_sig)
Create an epsilon tensor in a Minkowski space with four indices.
ex lorentz_g(const ex &i1, const ex &i2, bool pos_sig)
Create a Minkowski metric tensor with specified indices.
std::vector< ex > exvector
ex epsilon_tensor(const ex &i1, const ex &i2)
Create an epsilon tensor in a Euclidean space with two indices.
#define GINAC_DECLARE_REGISTERED_CLASS(classname, supername)
Macro for inclusion in the declaration of each registered class.