GiNaC  1.6.2
Public Member Functions | Protected Member Functions
GiNaC::tensmetric Class Reference

This class represents a general metric tensor which can be used to raise/lower indices. More...

#include <tensor.h>

Inheritance diagram for GiNaC::tensmetric:
GiNaC::tensor GiNaC::basic GiNaC::refcounted GiNaC::minkmetric GiNaC::spinmetric

List of all members.

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.

Detailed Description

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.

Definition at line 75 of file tensor.h.


Member Function Documentation

bool GiNaC::tensmetric::info ( unsigned  inf) const [virtual]

Information about the object.

See also:
class info_flags

Reimplemented from GiNaC::basic.

Reimplemented in GiNaC::spinmetric, and GiNaC::minkmetric.

Definition at line 148 of file tensor.cpp.

References GiNaC::info_flags::real.

ex GiNaC::tensmetric::eval_indexed ( const basic i) const [virtual]
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.


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

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.