Chi-Tech
|
#include <chi_math_tensorRNX.h>
Public Member Functions | |
TensorRNX () | |
TensorRNX (const NumberFormat value) | |
TensorRNX (const TensorRNX< 2, N, NumberFormat > &that) | |
TensorRNX & | operator= (const TensorRNX &rhs) |
const VectorNX< N, NumberFormat > & | operator[] (const int i) const |
VectorNX< N, NumberFormat > & | operator() (const int i) |
TensorRNX< 2, N, NumberFormat > | operator+ (const TensorRNX< 2, N, NumberFormat > &that) const |
TensorRNX< 2, N, NumberFormat > & | operator+= (const TensorRNX< 2, N, NumberFormat > &that) |
TensorRNX< 2, N, NumberFormat > | operator- (const TensorRNX< 2, N, NumberFormat > &that) const |
TensorRNX< 2, N, NumberFormat > & | operator-= (const TensorRNX< 2, N, NumberFormat > &that) |
TensorRNX< 2, N, NumberFormat > | operator* (const double value) const |
TensorRNX< 2, N, NumberFormat > & | operator*= (const double value) |
TensorRNX< 2, N, NumberFormat > | operator/ (const double value) const |
TensorRNX< 2, N, NumberFormat > & | operator/= (const double value) |
TensorRNX< 2, N, NumberFormat > | Transpose () const |
VectorNX< N, NumberFormat > | Dot (const VectorNX< N, NumberFormat > &v) const |
VectorNX< N, NumberFormat > | Diag () const |
double | DiagSum () const |
std::string | PrintS () const |
Data Fields | |
std::vector< VectorNX< N, NumberFormat > > | entries |
const unsigned int | rank |
const unsigned int | dimension |
Specialized rank-2 tensor.
Definition at line 79 of file chi_math_tensorRNX.h.
|
inline |
Default constructor.
Definition at line 86 of file chi_math_tensorRNX.h.
|
inline |
Constructor with value.
Definition at line 96 of file chi_math_tensorRNX.h.
|
inline |
Copy constructor.
Definition at line 106 of file chi_math_tensorRNX.h.
|
inline |
Obtains the diagonal of a rank-2 tensor as a vector.
Definition at line 280 of file chi_math_tensorRNX.h.
|
inline |
Returns the sum of the diagonal. Sometimes useful to get divergence of a vector given its gradient.
Definition at line 294 of file chi_math_tensorRNX.h.
|
inline |
Tensor dot-product with a vector.
Definition at line 266 of file chi_math_tensorRNX.h.
|
inline |
Return reference to vector at given row.
Definition at line 126 of file chi_math_tensorRNX.h.
|
inline |
Component-wise multiplication by scalar.
Definition at line 196 of file chi_math_tensorRNX.h.
|
inline |
In-place component-wise multiplication by scalar.
Definition at line 211 of file chi_math_tensorRNX.h.
|
inline |
Component-wise addition.
Definition at line 134 of file chi_math_tensorRNX.h.
|
inline |
In-place component-wise addition.
Definition at line 150 of file chi_math_tensorRNX.h.
|
inline |
Component-wise subtraction.
Definition at line 165 of file chi_math_tensorRNX.h.
|
inline |
In-place component-wise subtraction.
Definition at line 181 of file chi_math_tensorRNX.h.
|
inline |
Component-wise division by scalar.
Definition at line 223 of file chi_math_tensorRNX.h.
|
inline |
In-place component-wise division by scalar.
Definition at line 238 of file chi_math_tensorRNX.h.
|
inline |
Component-wise copy (assignment operator.
Definition at line 112 of file chi_math_tensorRNX.h.
|
inline |
Return reference to vector at given row.
Definition at line 120 of file chi_math_tensorRNX.h.
|
inline |
Prints the tensor to a string and then returns the string.
Definition at line 308 of file chi_math_tensorRNX.h.
|
inline |
Classical transpose of the tensor.
Definition at line 250 of file chi_math_tensorRNX.h.
const unsigned int chi_math::TensorRNX< 2, N, NumberFormat >::dimension |
Definition at line 83 of file chi_math_tensorRNX.h.
std::vector<VectorNX<N,NumberFormat> > chi_math::TensorRNX< 2, N, NumberFormat >::entries |
Definition at line 81 of file chi_math_tensorRNX.h.
const unsigned int chi_math::TensorRNX< 2, N, NumberFormat >::rank |
Definition at line 82 of file chi_math_tensorRNX.h.