38#ifndef Foam_Tensor2D_H
39#define Foam_Tensor2D_H
50template<
class Cmpt>
class SymmTensor2D;
120 const Cmpt txx,
const Cmpt txy,
121 const Cmpt tyx,
const Cmpt tyy
132 inline const Cmpt&
xx()
const;
133 inline const Cmpt&
xy()
const;
134 inline const Cmpt&
yx()
const;
135 inline const Cmpt&
yy()
const;
152 template<direction Idx>
159 template<direction Idx>
178 template<direction Idx>
185 template<direction Idx>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A templated (2 x 2) diagonal tensor of objects of <T>, effectively containing 1 element,...
A templated (2 x 2) symmetric tensor of objects of <T>, effectively containing 3 elements,...
A templated (2 x 2) tensor of objects of <T> derived from VectorSpace.
Tensor2D< label > labelType
Equivalent type of labels used for valid component indexing.
components
Component labeling enumeration.
Vector2D< Cmpt > y() const
Extract vector for row 1.
Vector2D< Cmpt > cy() const
Extract vector for column 1.
Vector2D< Cmpt > vectorComponent(const direction cmpt) const
Deprecated(2018-12) Return vector for given row (0,1)
void cols(const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y)
Set column values.
Tensor2D()=default
Default construct.
Vector2D< Cmpt > row() const
Extract vector for given row: compile-time check of index.
static constexpr direction rank
Rank of Tensor2D is 2.
Tensor2D< Cmpt > schur(const Tensor2D< Cmpt > &t2) const
Schur-product of this with another Tensor2D.
Vector2D< Cmpt > x() const
Extract vector for row 0.
void rows(const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y)
Set row values.
Tensor2D & operator=(const Tensor2D &)=default
Copy assignment.
Vector2D< Cmpt > cx() const
Extract vector for column 0.
Tensor2D(const Tensor2D &)=default
Copy construct.
Tensor2D< Cmpt > T() const
Return non-Hermitian transpose.
Vector2D< Cmpt > diag() const
Extract the diagonal as a vector.
Vector2D< Cmpt > col() const
Extract vector for given column: compile-time check of index.
Tensor2D< Cmpt > inner(const Tensor2D< Cmpt > &t2) const
Inner-product of this with another Tensor2D.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A template class to specify if a data type is composed solely of Foam::label elements.
A template class to specify if a data type is composed solely of Foam::scalar elements.
A template class to specify that a data type can be considered as being contiguous in memory.