|
Rheolef
7.2
an efficient C++ finite element environment
|
The tensor class defines a d*d matrix with floating coefficients. This class is suitable for defining tensors, i.e. field with d*d matrix values at each physical position.
It is represented as a bidimensional array of coordinates. The coordinate indexes start at zero and finishes at d-1, e.g. a(0,0), a(0,1), ..., a(2,2).
The default constructor set all components to zero:
tensor a;
and this default could be overridden:
tensor a = {{1, 2, 3.14},
{2, 6, 6.2 },
{5, 8, 9.0 }};
The standard linear algebra with scalars, vectors of R^3 (see the point class) and tensor is supported.
The computation of eigenvalues and eigenvectors, together with the SVD decomposition are also provided for convenience.
This documentation has been generated from file fem/geo_element/tensor.h
The tensor class is simply an alias to the tensor_basic class
The tensor_basic class is a template class with the floating type as parameter:
The linear algebra is completed by some classical operators and the matrix exponential: