43#ifndef Foam_SymmetricSquareMatrix_H
44#define Foam_SymmetricSquareMatrix_H
60 public Matrix<SymmetricSquareMatrix<Type>, Type>
92 template<
class AnyType>
111 template<
class AnyType>
Templated identity and dual space identity tensors derived from SphericalTensor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
constexpr Matrix() noexcept
label n() const noexcept
The number of columns.
A templated (N x N) square matrix of objects of <Type>, containing N*N elements, derived from Matrix.
void operator=(Foam::zero)
Assign all elements to zero.
SymmetricSquareMatrix(const label n, Foam::zero)
Construct for given size (rows == cols) initializing all elements to zero.
SymmetricSquareMatrix()=default
Default construct.
SymmetricSquareMatrix(const label n)
Construct for given size (rows == cols), uninitialised content.
SymmetricSquareMatrix(const SymmetricSquareMatrix &)=default
Copy construct.
autoPtr< SymmetricSquareMatrix< Type > > clone() const
Clone.
SymmetricSquareMatrix & operator=(const SymmetricSquareMatrix &)=default
Copy assignment.
void operator=(const Type &val)
Assign all elements to value.
SymmetricSquareMatrix(const label n, const Identity< AnyType >)
Construct for given size (rows == cols) initializing to the identity matrix.
void operator=(const Identity< AnyType >)
Set to identity matrix.
SymmetricSquareMatrix(Istream &is)
Construct from Istream.
SymmetricSquareMatrix(const label n, const Type &val)
Construct for given size (rows == cols) initializing all elements to the given value.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
dimensionedScalar det(const dimensionedSphericalTensor &dt)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
scalar detDecomposed(const SquareMatrix< Type > &matrix, const label sign)
Return the determinant of the LU decomposed SquareMatrix.
SymmetricSquareMatrix< Type > invDecomposed(const SymmetricSquareMatrix< Type > &)
Return the LU decomposed SymmetricSquareMatrix inverse.