|
GiNaC
1.6.2
|
This class represents a general metric tensor which can be used to raise/lower indices. More...
#include <tensor.h>
Public Member Functions | |
| bool | info (unsigned inf) const |
| Information about the object. | |
| ex | eval_indexed (const basic &i) const |
| Automatic symbolic evaluation of an indexed metric tensor. | |
| bool | contract_with (exvector::iterator self, exvector::iterator other, exvector &v) const |
| Contraction of an indexed metric tensor with something else. | |
Protected Member Functions | |
| unsigned | return_type () const |
| void | do_print (const print_context &c, unsigned level) const |
| Default output to stream. | |
This class represents a general metric tensor which can be used to raise/lower indices.
If indexed, it must have exactly two indices of the same type which must be of class varidx or a subclass.
| bool GiNaC::tensmetric::info | ( | unsigned | inf | ) | const [virtual] |
Information about the object.
Reimplemented from GiNaC::basic.
Reimplemented in GiNaC::spinmetric, and GiNaC::minkmetric.
Definition at line 148 of file tensor.cpp.
References GiNaC::info_flags::real.
Automatic symbolic evaluation of an indexed metric tensor.
Reimplemented from GiNaC::basic.
Reimplemented in GiNaC::spinmetric, and GiNaC::minkmetric.
Definition at line 253 of file tensor.cpp.
References GiNaC::delta_tensor(), GiNaC::idx::get_dim(), GINAC_ASSERT, GiNaC::basic::hold(), GiNaC::varidx::is_covariant(), GiNaC::ex::is_equal(), m, GiNaC::idx::minimal_dim(), GiNaC::subs_options::no_pattern, GiNaC::basic::nops(), GiNaC::basic::op(), GiNaC::idx::replace_dim(), and GiNaC::basic::subs().
| bool GiNaC::tensmetric::contract_with | ( | exvector::iterator | self, |
| exvector::iterator | other, | ||
| exvector & | v | ||
| ) | const [virtual] |
Contraction of an indexed metric tensor with something else.
Reimplemented from GiNaC::basic.
Reimplemented in GiNaC::spinmetric.
Definition at line 444 of file tensor.cpp.
References GINAC_ASSERT, and GiNaC::tensor::replace_contr_index().
| unsigned GiNaC::tensmetric::return_type | ( | ) | const [inline, protected, virtual] |
Reimplemented from GiNaC::tensor.
Reimplemented in GiNaC::minkmetric.
Definition at line 87 of file tensor.h.
References GiNaC::return_types::commutative.
| void GiNaC::tensmetric::do_print | ( | const print_context & | c, |
| unsigned | level | ||
| ) | const [protected] |
Default output to stream.
Reimplemented from GiNaC::basic.
Reimplemented in GiNaC::spinmetric, and GiNaC::minkmetric.