42 #ifndef Foam_SymmTensor2D_H 43 #define Foam_SymmTensor2D_H 112 const Cmpt txx,
const Cmpt txy,
138 inline Vector2D<Cmpt>
diag()
const;
153 inline Cmpt
det()
const;
187 struct is_contiguous_scalar<SymmTensor2D<Cmpt>> : is_contiguous_scalar<Cmpt> {};
SymmTensor2D< label > labelType
Equivalent type of labels used for valid component indexing.
SymmTensor2D()=default
Default construct.
SymmTensor2D< Cmpt > inv() const
Return inverse.
static const SymmTensor2D I
const Cmpt & xx() const noexcept
Vector2D< Cmpt > diag() const
Extract the diagonal as a vector.
components
Component labeling enumeration.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const Cmpt & xy() const noexcept
const Cmpt & yx() const noexcept
SymmTensor2D< Cmpt > adjunct() const
Return adjunct matrix (transpose of cofactor matrix)
Cmpt det() const
The determinate.
const Cmpt & yy() const noexcept
SymmTensor2D & operator=(const SymmTensor2D &)=default
Copy assignment.
const SymmTensor2D< Cmpt > & T() const noexcept
Return non-Hermitian transpose.
static constexpr direction rank
Rank of SymmTensor2D is 2.
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &)
SymmTensor2D< Cmpt > cof() const
Return cofactor matrix (transpose of adjunct matrix)
A templated (2 x 2) diagonal tensor of objects of <T>, effectively containing 1 element, derived from VectorSpace.
A template class to specify that a data type can be considered as being contiguous in memory...
A template class to specify if a data type is composed solely of Foam::label elements.
A templated (2 x 2) symmetric tensor of objects of <T>, effectively containing 3 elements, derived from VectorSpace.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Templated 2D Vector derived from VectorSpace adding construction from 2 components, element access using x() and y() member functions and the inner-product (dot-product).
scalar diagSqr() const
The L2-norm squared of the diagonal.
Cmpt v_[Ncmpts]
The components of this vector space.