#include <Tensor.h>
Inheritance diagram for OSCAR::Tensor:

Public Methods | |
| Tensor (unsigned int nm, Matrix *mp, const String &name=String()) | |
| Tensor (unsigned int nm, unsigned int Nrow, unsigned int Ncol, const String &name=String()) | |
| Tensor (const Tensor &rhs) | |
| virtual | ~Tensor () |
| unsigned int | nMatrix () const |
| unsigned int | nRow () const |
| unsigned int | nCol () const |
| Tensor & | operator= (const Tensor &rhs) |
| double & | at (unsigned int i, unsigned int j, unsigned int k) |
| const double & | at (unsigned int i, unsigned int j, unsigned int k) const |
| double & | operator() (unsigned int i, unsigned int j, unsigned int k) |
| const double & | operator() (unsigned int i, unsigned int j, unsigned int k) const |
| Vector | at (unsigned int i, unsigned int j) |
| Vector | operator() (unsigned int i, unsigned int j) |
| Matrix & | at (unsigned int i) |
| const Matrix & | at (unsigned int i) const |
| Matrix & | operator() (unsigned int i) |
| const Matrix & | operator() (unsigned int i) const |
| bool | Copy (const Tensor &tensorToCopy) |
Protected Methods | |
| Matrixp * | init_Matrix_array (unsigned int a, Matrix *ptr=0) |
| Matrixp * | init_Matrix_array (unsigned int a, Matrixp *ptr) |
Protected Attributes | |
| Matrixp * | mpp |
| unsigned int | nmatrix |
| unsigned int | nrow |
| unsigned int | ncol |
|
||||||||||||||||
|
Constructor. This is the constructor for an object of type Tensor. Use this to construct an Tensor object from an array of Matrix objects. Matrices must be the same size or an error (tensorMatrixSizeMismatch) will occur. In addition, this Tensor object can be given a name also.
|
|
||||||||||||||||||||
|
Constructor. This is the constructor for an object of type Tensor. Use this to construct an empty Tensor object.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type Tensor. Use this to construct an Tensor object from an existing Tensor object.
|
|
|
Destructor. This is the Destructor for an object of type Tensor. |
|
|
Get a reference to a const Matrix inside a const Tensor. This method is used to get a reference to a particular Matrix. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
|
Get a reference to a Matrix inside an Tensor. This method is used to get a reference to a particular Matrix. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
||||||||||||
|
Get an Vector from within an Tensor. This method is used to get an Vector from within an Tensor. It will return the jth row from the ith matrix. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
||||||||||||||||
|
Get a const reference to a particular element. This method is used to get a const reference to a particular element. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
||||||||||||||||
|
Get a reference to a particular element. This method is used to get a reference to a particular element. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
|
|
|
||||||||||||
|
Initialize the array of RRMatrices. This method is an overloaded version of the previous one, and is used to initialize the array of RRMatrices.
|
|
||||||||||||
|
Initialize the array of RRMatrices. This method is used to initialize the array of RRMatrices. The value of the pointer to the array of RRMatrices is optional, and by default is null.
|
|
|
Get the number of columns in each matrix. This method is used to get the number of columns in each matrix.
|
|
|
Get the number of matrices in the tensor. This method is used to get the number of matrices.
|
|
|
Get the number of rows in each matrix. This method is used to get the number of rows in each matrix.
|
|
|
Overloaded const operator(). This Overloaded operator() is used to get a const reference to a particular Matrix. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range (Debug only).
|
|
|
Overloaded operator(). This Overloaded operator() is used to get a reference to a particular Matrix. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
||||||||||||
|
Overloaded operator(). This overloaded operator() is used to get an Vector from within an Tensor. It will return the jth row from the ith matrix. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range, but only in Debug mode.
|
|
||||||||||||||||
|
Overloaded const operator(). This overloaded operator() is used to get a const reference to a particular element. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range (Debug only).
|
|
||||||||||||||||
|
Overloaded operator(). This overloaded operator() is used to get a reference to a particular element. This method only does error checking in Debug mode, so it offers increased speed over the operator() in Release mode. This method Displays an error if any of the indices are out of range (Debug only).
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type Tensor. If both Tensors are of different sizes, then an error occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |