|
| Tensor ()=default |
| Default construct. More...
|
|
| Tensor (const Tensor &)=default |
| Copy construct. More...
|
|
Tensor & | operator= (const Tensor &)=default |
| Copy assignment. More...
|
|
| Tensor (const Foam::zero) |
| Construct initialized to zero. More...
|
|
template<class Cmpt2 > |
| Tensor (const MatrixSpace< Tensor< Cmpt2 >, Cmpt2, 3, 3 > &vs) |
| Construct given MatrixSpace of the same rank. More...
|
|
template<class Cmpt2 > |
| Tensor (const VectorSpace< Tensor< Cmpt2 >, Cmpt2, 9 > &vs) |
| Construct given VectorSpace of the same rank. More...
|
|
| Tensor (const SphericalTensor< Cmpt > &st) |
| Construct given SphericalTensor. More...
|
|
| Tensor (const SymmTensor< Cmpt > &st) |
| Construct given SymmTensor. More...
|
|
| Tensor (const Vector< Vector< Cmpt >> &vecs, const bool transposed=false) |
| Construct given triad of row vectors, optionally treated as transposed (ie, column vectors) More...
|
|
| Tensor (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z, const bool transposed=false) |
| Construct given the three row vectors, optionally treated as transposed (ie, column vectors) More...
|
|
| Tensor (const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyx, const Cmpt tyy, const Cmpt tyz, const Cmpt tzx, const Cmpt tzy, const Cmpt tzz) |
| Construct given the nine components. More...
|
|
template<template< class, direction, direction > class Block2, direction BRowStart, direction BColStart> |
| Tensor (const Block2< Tensor< Cmpt >, BRowStart, BColStart > &block) |
| Construct from a block of another matrix space. More...
|
|
| Tensor (Istream &is) |
| Construct from Istream. More...
|
|
const Cmpt & | xx () const noexcept |
|
const Cmpt & | xy () const noexcept |
|
const Cmpt & | xz () const noexcept |
|
const Cmpt & | yx () const noexcept |
|
const Cmpt & | yy () const noexcept |
|
const Cmpt & | yz () const noexcept |
|
const Cmpt & | zx () const noexcept |
|
const Cmpt & | zy () const noexcept |
|
const Cmpt & | zz () const noexcept |
|
Cmpt & | xx () noexcept |
|
Cmpt & | xy () noexcept |
|
Cmpt & | xz () noexcept |
|
Cmpt & | yx () noexcept |
|
Cmpt & | yy () noexcept |
|
Cmpt & | yz () noexcept |
|
Cmpt & | zx () noexcept |
|
Cmpt & | zy () noexcept |
|
Cmpt & | zz () noexcept |
|
Vector< Cmpt > | cx () const |
| Extract vector for column 0. More...
|
|
Vector< Cmpt > | cy () const |
| Extract vector for column 1. More...
|
|
Vector< Cmpt > | cz () const |
| Extract vector for column 2. More...
|
|
template<direction Idx> |
Vector< Cmpt > | col () const |
| Extract vector for given column: compile-time check of index. More...
|
|
Vector< Cmpt > | col (const direction c) const |
| Extract vector for given column (0,1,2): runtime check of index. More...
|
|
template<direction Idx> |
void | col (const Vector< Cmpt > &v) |
| Set values of given column: compile-time check of index. More...
|
|
void | col (const direction c, const Vector< Cmpt > &v) |
| Set values of given column (0,1,2): runtime check of index. More...
|
|
void | cols (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z) |
| Set column values. More...
|
|
Vector< Cmpt > | x () const |
| Extract vector for row 0. More...
|
|
Vector< Cmpt > | y () const |
| Extract vector for row 1. More...
|
|
Vector< Cmpt > | z () const |
| Extract vector for row 2. More...
|
|
template<direction Idx> |
Vector< Cmpt > | row () const |
| Extract vector for given row: compile-time check of index. More...
|
|
Vector< Cmpt > | row (const direction r) const |
| Extract vector for given row (0,1,2): runtime check of index. More...
|
|
template<direction Idx> |
void | row (const Vector< Cmpt > &v) |
| Set values of given row: compile-time check of index. More...
|
|
void | row (const direction r, const Vector< Cmpt > &v) |
| Set values of given row (0,1,2): runtime check of row. More...
|
|
void | rows (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z) |
| Set row values. More...
|
|
Vector< Cmpt > | diag () const |
| Extract the diagonal as a vector. More...
|
|
void | diag (const Vector< Cmpt > &v) |
| Set values of the diagonal. More...
|
|
void | addDiag (const Vector< Cmpt > &v) |
| Add to the diagonal. More...
|
|
void | subtractDiag (const Vector< Cmpt > &v) |
| Subtract from the diagonal. More...
|
|
scalar | diagSqr () const |
| The L2-norm squared of the diagonal. More...
|
|
bool | is_identity (const scalar tol=ROOTVSMALL) const |
| Is identity tensor? More...
|
|
Tensor< Cmpt > | T () const |
| Return non-Hermitian transpose. More...
|
|
Cmpt | det () const |
| The determinate. More...
|
|
Cmpt | det2D (const direction excludeCmpt) const |
| The 2D determinant by excluding given direction. More...
|
|
Tensor< Cmpt > | adjunct () const |
| Return adjunct matrix (transpose of cofactor matrix) More...
|
|
Tensor< Cmpt > | cof () const |
| Return cofactor matrix (transpose of adjunct matrix) More...
|
|
Tensor< Cmpt > | adjunct2D (const direction excludeCmpt) const |
| Return 2D adjunct matrix by excluding given direction. More...
|
|
Tensor< Cmpt > | inv () const |
| Return inverse. More...
|
|
Tensor< Cmpt > | safeInv () const |
| Return inverse, with (ad hoc) failsafe handling of 2D tensors. More...
|
|
Tensor< Cmpt > | inv2D (const direction excludeCmpt) const |
| Return inverse of 2D tensor (by excluding given direction) More...
|
|
Tensor< Cmpt > | inner (const Tensor< Cmpt > &t2) const |
| Inner-product of this with another Tensor. More...
|
|
Tensor< Cmpt > | schur (const Tensor< Cmpt > &t2) const |
| Schur-product of this with another Tensor. More...
|
|
void | operator &= (const Tensor< Cmpt > &t) |
| Assign inner-product of this with another Tensor. More...
|
|
template<class Cmpt2 > |
void | operator= (const VectorSpace< Tensor< Cmpt2 >, Cmpt2, 9 > &) |
| Assign to an equivalent vector space. More...
|
|
void | operator= (const SphericalTensor< Cmpt > &) |
| Assign to a SphericalTensor. More...
|
|
void | operator= (const SymmTensor< Cmpt > &) |
| Assign to a SymmTensor. More...
|
|
void | operator= (const Vector< Vector< Cmpt >> &) |
| Assign to a triad of row vectors. More...
|
|
Vector< Cmpt > | vectorComponent (const direction cmpt) const |
| Deprecated(2018-12) Return vector for given row (0,1) More...
|
|
template<> |
const Foam::Tensor< float > | I (1, 0, 0, 0, 1, 0, 0, 0, 1) |
|
template<> |
const Foam::Tensor< double > | I (1, 0, 0, 0, 1, 0, 0, 0, 1) |
|
template<Foam::direction Idx> |
Foam::Vector< Cmpt > | col () const |
|
template<Foam::direction Idx> |
Foam::Vector< Cmpt > | row () const |
|
| MatrixSpace ()=default |
| Default construct. More...
|
|
| MatrixSpace (const Foam::zero) |
| Construct initialized to zero. More...
|
|
| MatrixSpace (const VectorSpace< Form2, Cmpt2, Mrows *Ncols > &) |
| Construct as copy of a VectorSpace with the same size. More...
|
|
| MatrixSpace (const Block2< Tensor< Cmpt >, BRowStart, BColStart > &block) |
| Construct from a block of another matrix space. More...
|
|
| MatrixSpace (Istream &is) |
| Construct from Istream. More...
|
|
const Cmpt & | elmt () const noexcept |
| Fast const element access using compile-time addressing. More...
|
|
Cmpt & | elmt () noexcept |
| Fast element access using compile-time addressing. More...
|
|
const Cmpt & | xx () const noexcept |
|
Cmpt & | xx () noexcept |
|
const Cmpt & | xy () const noexcept |
|
Cmpt & | xy () noexcept |
|
const Cmpt & | xz () const noexcept |
|
Cmpt & | xz () noexcept |
|
const Cmpt & | yx () const noexcept |
|
Cmpt & | yx () noexcept |
|
const Cmpt & | yy () const noexcept |
|
Cmpt & | yy () noexcept |
|
const Cmpt & | yz () const noexcept |
|
Cmpt & | yz () noexcept |
|
const Cmpt & | zx () const noexcept |
|
Cmpt & | zx () noexcept |
|
const Cmpt & | zy () const noexcept |
|
Cmpt & | zy () noexcept |
|
const Cmpt & | zz () const noexcept |
|
Cmpt & | zz () noexcept |
|
typeOfTranspose< Cmpt, Tensor< Cmpt > >::type | T () const |
| Return the transpose of the matrix. More...
|
|
ConstBlock< SubTensor, BRowStart, BColStart > | block () const |
| Return a const sub-block corresponding to the specified type. More...
|
|
Block< SubTensor, BRowStart, BColStart > | block () |
| Return a sub-block corresponding to the specified type. More...
|
|
Foam::MatrixSpace< Tensor< Cmpt >, Cmpt, Mrows, Ncols >::template ConstBlock< SubTensor, BRowStart, BColStart > | block () const |
|
Foam::MatrixSpace< Tensor< Cmpt >, Cmpt, Mrows, Ncols >::template Block< SubTensor, BRowStart, BColStart > | block () |
|
const Cmpt & | operator() (const direction &i, const direction &j) const |
| (i, j) const element access operator More...
|
|
Cmpt & | operator() (const direction &i, const direction &j) |
| (i, j) element access operator More...
|
|
void | operator= (const Foam::zero) |
| Assignment to zero. More...
|
|
void | operator= (const Block2< Tensor< Cmpt >, BRowStart, BColStart > &block) |
| Assignment to a block of another matrix space. More...
|
|
void | operator&= (const MatrixSpace< Tensor< Cmpt >, Cmpt, Ncols, Ncols > &matrix) |
| Inner product with a compatible square matrix. More...
|
|
| VectorSpace ()=default |
| Default construct. More...
|
|
| VectorSpace (const Foam::zero) |
| Construct initialized to zero. More...
|
|
| VectorSpace (const VectorSpace< Tensor< Cmpt >, Cmpt, Ncmpts > &vs) |
| Copy construct. More...
|
|
| VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) |
| Copy construct of a VectorSpace with the same size. More...
|
|
| VectorSpace (Istream &is) |
| Construct from Istream. More...
|
|
const Cmpt & | component (const direction) const |
|
Cmpt & | component (const direction) |
|
void | component (Cmpt &, const direction) const |
|
void | replace (const direction, const Cmpt &) |
|
const Cmpt * | cdata () const noexcept |
| Return const pointer to the first data element. More...
|
|
Cmpt * | data () noexcept |
| Return pointer to the first data element. More...
|
|
const ConstBlock< SubVector, BStart > | block () const |
|
const Foam::VectorSpace< Tensor< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
|
const Cmpt & | operator[] (const direction) const |
|
Cmpt & | operator[] (const direction) |
|
void | operator= (const VectorSpace< Tensor< Cmpt >, Cmpt, Ncmpts > &) |
|
void | operator= (const Foam::zero) |
|
void | operator+= (const VectorSpace< Tensor< Cmpt >, Cmpt, Ncmpts > &) |
|
void | operator-= (const VectorSpace< Tensor< Cmpt >, Cmpt, Ncmpts > &) |
|
void | operator*= (const scalar) |
|
void | operator/= (const scalar) |
|
iterator | begin () noexcept |
| Return an iterator to begin of VectorSpace. More...
|
|
const_iterator | begin () const noexcept |
| Return const_iterator to begin of VectorSpace. More...
|
|
iterator | end () noexcept |
| Return an iterator to end of VectorSpace. More...
|
|
const_iterator | end () const noexcept |
| Return const_iterator to end of VectorSpace. More...
|
|
const_iterator | cbegin () const noexcept |
| Return const_iterator to begin of VectorSpace. More...
|
|
const_iterator | cend () const noexcept |
| Return const_iterator to end of VectorSpace. More...
|
|