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

This class represents an antisymmetric spinor metric tensor which can be used to raise/lower indices of 2-component Weyl spinors. More...

#include <tensor.h>

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

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 spinor metric with something else.

Protected Member Functions

void do_print (const print_context &c, unsigned level) const
 Default output to stream.
void do_print_latex (const print_latex &c, unsigned level) const

Detailed Description

This class represents an antisymmetric spinor metric tensor which can be used to raise/lower indices of 2-component Weyl spinors.

If indexed, it must have exactly two indices of the same type which must be of class spinidx or a subclass and have dimension 2.

Definition at line 131 of file tensor.h.


Member Function Documentation

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

Information about the object.

See also:
class info_flags

Reimplemented from GiNaC::tensmetric.

Definition at line 196 of file tensor.cpp.

References GiNaC::info_flags::real.

ex GiNaC::spinmetric::eval_indexed ( const basic i) const [virtual]

Automatic symbolic evaluation of an indexed metric tensor.

Reimplemented from GiNaC::tensmetric.

Definition at line 311 of file tensor.cpp.

References GiNaC::_ex0, GiNaC::_ex1, GiNaC::_ex_1, GiNaC::idx::get_value(), GINAC_ASSERT, GiNaC::basic::hold(), GiNaC::info_flags::nonnegint, GiNaC::basic::nops(), GiNaC::basic::op(), and GiNaC::to_int().

bool GiNaC::spinmetric::contract_with ( exvector::iterator  self,
exvector::iterator  other,
exvector v 
) const [virtual]

Contraction of an indexed spinor metric with something else.

Reimplemented from GiNaC::tensmetric.

Definition at line 462 of file tensor.cpp.

References GiNaC::_ex1, GiNaC::_ex2, GiNaC::_ex_2, GiNaC::delta_tensor(), GINAC_ASSERT, GiNaC::is_dummy_pair(), GiNaC::idx::is_symbolic(), and GiNaC::idx::subs().

void GiNaC::spinmetric::do_print ( const print_context c,
unsigned  level 
) const [protected]

Default output to stream.

Reimplemented from GiNaC::tensmetric.

void GiNaC::spinmetric::do_print_latex ( const print_latex c,
unsigned  level 
) const [protected]

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.