Templated 3x3 tensor derived from VectorSpace. Has 9 components. Can represent a barycentric transformation as a matrix-barycentric inner- product. Can alternatively represent an inverse barycentric transformation as a vector-matrix inner-product. More...
Public Types | |
enum | components { XA, XB, XC, YA, YB, YC, ZA, ZB, ZC } |
Component labeling enumeration. More... | |
typedef Tensor2D< label > | labelType |
Equivalent type of labels used for valid component indexing. More... | |
Public Types inherited from MatrixSpace< BarycentricTensor2D< Cmpt >, Cmpt, 3, 3 > | |
typedef MatrixSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows, Ncols > | msType |
MatrixSpace type. More... | |
Public Types inherited from VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols > | |
typedef VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
BarycentricTensor2D () | |
Construct null. More... | |
BarycentricTensor2D (const Foam::zero) | |
Construct initialised to zero. More... | |
BarycentricTensor2D (const Barycentric2D< Cmpt > &x, const Barycentric2D< Cmpt > &y, const Barycentric2D< Cmpt > &z) | |
Construct given three barycentric components (rows) More... | |
BarycentricTensor2D (const Vector< Cmpt > &a, const Vector< Cmpt > &b, const Vector< Cmpt > &c) | |
Construct given three vector components (columns) More... | |
Barycentric2D< Cmpt > | x () const |
Barycentric2D< Cmpt > | y () const |
Barycentric2D< Cmpt > | z () const |
Vector< Cmpt > | a () const |
Vector< Cmpt > | b () const |
Vector< Cmpt > | c () const |
Public Member Functions inherited from MatrixSpace< BarycentricTensor2D< Cmpt >, Cmpt, 3, 3 > | |
MatrixSpace () | |
Construct null. More... | |
MatrixSpace (const Foam::zero) | |
Construct initialised to zero. More... | |
MatrixSpace (const VectorSpace< Form2, Cmpt2, Mrows *Ncols > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
MatrixSpace (const Block2< BarycentricTensor2D< Cmpt >, BRowStart, BColStart > &block) | |
Construct from a block of another matrix space. More... | |
MatrixSpace (Istream &) | |
Construct from Istream. More... | |
const Cmpt & | elmt () const |
Fast const element access using compile-time addressing. More... | |
Cmpt & | elmt () |
Fast element access using compile-time addressing. More... | |
const Cmpt & | xx () const |
Cmpt & | xx () |
const Cmpt & | xy () const |
Cmpt & | xy () |
const Cmpt & | xz () const |
Cmpt & | xz () |
const Cmpt & | yx () const |
Cmpt & | yx () |
const Cmpt & | yy () const |
Cmpt & | yy () |
const Cmpt & | yz () const |
Cmpt & | yz () |
const Cmpt & | zx () const |
Cmpt & | zx () |
const Cmpt & | zy () const |
Cmpt & | zy () |
const Cmpt & | zz () const |
Cmpt & | zz () |
typeOfTranspose< Cmpt, BarycentricTensor2D< 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< BarycentricTensor2D< Cmpt >, Cmpt, Mrows, Ncols >::template ConstBlock< SubTensor, BRowStart, BColStart > | block () const |
Foam::MatrixSpace< BarycentricTensor2D< 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< BarycentricTensor2D< Cmpt >, BRowStart, BColStart > &block) |
Assignment to a block of another matrix space. More... | |
void | operator&= (const MatrixSpace< BarycentricTensor2D< Cmpt >, Cmpt, Ncols, Ncols > &matrix) |
Inner product with a compatible square matrix. More... | |
Public Member Functions inherited from VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols > | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (const Foam::zero) | |
Construct initialised to zero. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const ConstBlock< SubVector, BStart > | block () const |
const VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Attributes | |
static const direction | rank = 2 |
Rank of BarycentricTensor2D is 2. More... | |
Static Public Attributes inherited from MatrixSpace< BarycentricTensor2D< Cmpt >, Cmpt, 3, 3 > | |
static const direction | mRows |
static const direction | nCols |
Static Public Attributes inherited from VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols > | |
static const direction | dim |
Dimensionality of space. More... | |
static const direction | nComponents |
Number of components in this vector space. More... | |
static const direction | mRows |
static const direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const BarycentricTensor2D< Cmpt > | zero |
static const BarycentricTensor2D< Cmpt > | one |
static const BarycentricTensor2D< Cmpt > | max |
static const BarycentricTensor2D< Cmpt > | min |
static const BarycentricTensor2D< Cmpt > | rootMax |
static const BarycentricTensor2D< Cmpt > | rootMin |
Additional Inherited Members | |
Static Public Member Functions inherited from MatrixSpace< BarycentricTensor2D< Cmpt >, Cmpt, 3, 3 > | |
static direction | m () |
Return the number of rows. More... | |
static direction | n () |
Return the number of columns. More... | |
static msType | identity () |
Return the identity matrix for square matrix spaces. More... | |
Static Public Member Functions inherited from VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols > | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static BarycentricTensor2D< Cmpt > | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols > | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
Templated 3x3 tensor derived from VectorSpace. Has 9 components. Can represent a barycentric transformation as a matrix-barycentric inner- product. Can alternatively represent an inverse barycentric transformation as a vector-matrix inner-product.
Definition at line 54 of file BarycentricTensor2D.H.
Equivalent type of labels used for valid component indexing.
Definition at line 61 of file BarycentricTensor2D.H.
enum components |
Component labeling enumeration.
Enumerator | |
---|---|
XA | |
XB | |
XC | |
YA | |
YB | |
YC | |
ZA | |
ZB | |
ZC |
Definition at line 71 of file BarycentricTensor2D.H.
|
inline |
Construct null.
Definition at line 29 of file BarycentricTensor2DI.H.
Referenced by BarycentricTensor2D< Cmpt >::BarycentricTensor2D().
|
inline |
Construct initialised to zero.
Definition at line 34 of file BarycentricTensor2DI.H.
References BarycentricTensor2D< Cmpt >::BarycentricTensor2D().
|
inline |
Construct given three barycentric components (rows)
Definition at line 42 of file BarycentricTensor2DI.H.
References Barycentric2D< Cmpt >::a(), Barycentric2D< Cmpt >::b(), BarycentricTensor2D< Cmpt >::BarycentricTensor2D(), Barycentric2D< Cmpt >::c(), VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::XA, BarycentricTensor2D< Cmpt >::XB, BarycentricTensor2D< Cmpt >::XC, BarycentricTensor2D< Cmpt >::YA, BarycentricTensor2D< Cmpt >::YB, BarycentricTensor2D< Cmpt >::YC, BarycentricTensor2D< Cmpt >::ZA, BarycentricTensor2D< Cmpt >::ZB, and BarycentricTensor2D< Cmpt >::ZC.
|
inline |
Construct given three vector components (columns)
Definition at line 64 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, Vector< Cmpt >::x(), BarycentricTensor2D< Cmpt >::XA, BarycentricTensor2D< Cmpt >::XB, BarycentricTensor2D< Cmpt >::XC, Vector< Cmpt >::y(), BarycentricTensor2D< Cmpt >::YA, BarycentricTensor2D< Cmpt >::YB, BarycentricTensor2D< Cmpt >::YC, Vector< Cmpt >::z(), BarycentricTensor2D< Cmpt >::ZA, BarycentricTensor2D< Cmpt >::ZB, and BarycentricTensor2D< Cmpt >::ZC.
|
inline |
Definition at line 87 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::XA, BarycentricTensor2D< Cmpt >::XB, and BarycentricTensor2D< Cmpt >::XC.
Referenced by Foam::operator &().
|
inline |
Definition at line 100 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::YA, BarycentricTensor2D< Cmpt >::YB, and BarycentricTensor2D< Cmpt >::YC.
Referenced by Foam::operator &().
|
inline |
Definition at line 113 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::ZA, BarycentricTensor2D< Cmpt >::ZB, and BarycentricTensor2D< Cmpt >::ZC.
Referenced by Foam::operator &().
|
inline |
Definition at line 126 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::XA, BarycentricTensor2D< Cmpt >::YA, and BarycentricTensor2D< Cmpt >::ZA.
Referenced by Foam::operator &().
|
inline |
Definition at line 133 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::XB, BarycentricTensor2D< Cmpt >::YB, and BarycentricTensor2D< Cmpt >::ZB.
Referenced by Foam::operator &().
|
inline |
Definition at line 140 of file BarycentricTensor2DI.H.
References VectorSpace< BarycentricTensor2D< Cmpt >, Cmpt, Mrows *Ncols >::v_, BarycentricTensor2D< Cmpt >::XC, BarycentricTensor2D< Cmpt >::YC, and BarycentricTensor2D< Cmpt >::ZC.
Referenced by Foam::operator &().
|
static |
Rank of BarycentricTensor2D is 2.
Definition at line 67 of file BarycentricTensor2D.H.