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

This class represents the delta tensor. More...

#include <tensor.h>

Inheritance diagram for GiNaC::tensdelta:
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 delta tensor.
bool contract_with (exvector::iterator self, exvector::iterator other, exvector &v) const
 Contraction of an indexed delta 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.
void do_print_latex (const print_latex &c, unsigned level) const

Detailed Description

This class represents the delta tensor.

If indexed, it must have exactly two indices of the same type.

Definition at line 53 of file tensor.h.


Member Function Documentation

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

Information about the object.

See also:
class info_flags

Reimplemented from GiNaC::basic.

Definition at line 140 of file tensor.cpp.

References GiNaC::info_flags::real.

ex GiNaC::tensdelta::eval_indexed ( const basic i) const [virtual]
bool GiNaC::tensdelta::contract_with ( exvector::iterator  self,
exvector::iterator  other,
exvector v 
) const [virtual]

Contraction of an indexed delta tensor with something else.

Reimplemented from GiNaC::basic.

Definition at line 431 of file tensor.cpp.

References GINAC_ASSERT, and GiNaC::tensor::replace_contr_index().

unsigned GiNaC::tensdelta::return_type ( ) const [inline, protected, virtual]

Reimplemented from GiNaC::tensor.

Definition at line 65 of file tensor.h.

References GiNaC::return_types::commutative.

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

Default output to stream.

Reimplemented from GiNaC::basic.

void GiNaC::tensdelta::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.