#include <qtensor/qtensorindex.h>
Public Member Functions | |
QTensorIndex (const int dimension) | |
Creates a new index name object. | |
QTensorIndex (const QTensorIndex &tensorIndex) | |
Copy constructor for tensor index name objects. | |
QTensorIndex | cov () const |
Gets the covariant version of this index name. | |
QTensorIndex | covariant () const |
Gets the covariant version of this index name. | |
QTensorIndexRange | range (const int min, const int max) const |
Gets a value state containing a range of integer values for the index name. | |
const QTensorIndexRange | operator[] (const int value) const |
Gets a value state containing an integer, for the index name. |
The valence of a particular tensor is the number and type of array indices. QTensorIndex class can be used to create index objects, and compose list of them to indicate the valence of a tensor, at construction.
See QTensor class for detailed usage.
Definition at line 130 of file qtensorindex.h.
QTensorIndex::QTensorIndex | ( | const QTensorIndex & | tensorIndex | ) | [inline] |
Copy constructor for tensor index name objects.
Copies an index.
Definition at line 141 of file qtensorindex.h.
QTensorIndex QTensorIndex::cov | ( | ) | const [inline] |
Gets the covariant version of this index name.
Definition at line 145 of file qtensorindex.h.
References QTensorIndex().
QTensorIndex QTensorIndex::covariant | ( | ) | const [inline] |
Gets the covariant version of this index name.
Definition at line 149 of file qtensorindex.h.
References QTensorIndex().
QTensorIndexRange QTensorIndex::range | ( | const int | min, | |
const int | max | |||
) | const [inline] |
Gets a value state containing a range of integer values for the index name.
Definition at line 153 of file qtensorindex.h.
References ABS.
const QTensorIndexRange QTensorIndex::operator[] | ( | const int | value | ) | const [inline] |
Gets a value state containing an integer, for the index name.
Definition at line 157 of file qtensorindex.h.
References ABS.