![]() |
#include <Tensor.h>
Inheritance diagram for dolfin::Tensor< T >:


Public Member Functions | |
| Tensor () | |
| Create empty tensor. | |
| Tensor (int order, int dim) | |
| Create tensor of given order and dimension. | |
| Tensor (const Tensor &t) | |
| Copy constructor. | |
| ~Tensor () | |
| Destructor. | |
| void | init (int order, int dim) |
| Initialize to given order and dimension. | |
| void | clear () |
| Clear tesor. | |
| T & | operator() (int i0) |
| Evaluation for tensors of order = 1. | |
| T & | operator() (int i0, int i1) |
| Evaluation for tensors of order = 2. | |
| T & | operator() (int i0, int i1, int i2) |
| Evaluation for tensors of order = 3. | |
| T & | operator() (int *i) |
| Evaluation for tensors of general order. | |
| void | operator= (const Tensor< T > &t) |
| Assignment. | |
The number of possible values for each index is the dimension of the tensor.
The tensor is stored as an array where element (i_0, i_1, ... , i_m-1) is is given by element
i_0*n^(m-1) + i_1*n^(m-2) + ... + i_m-1,
where m is the order and n is the dimension.
|
|||||||||
|
Create empty tensor.
|
|
||||||||||||||||
|
Create tensor of given order and dimension.
|
|
||||||||||
|
Copy constructor.
|
|
|||||||||
|
Destructor.
|
|
|||||||||
|
Clear tesor.
|
|
||||||||||||||||
|
Initialize to given order and dimension.
|
|
||||||||||
|
Evaluation for tensors of general order.
|
|
||||||||||||||||||||
|
Evaluation for tensors of order = 3.
|
|
||||||||||||||||
|
Evaluation for tensors of order = 2.
|
|
||||||||||
|
Evaluation for tensors of order = 1.
|
|
||||||||||
|
Assignment.
|
![]()
Documentation automatically generated with Doxygen on 10 Sep 2004.