Go to the documentation of this file.
29 #define CHECK_MATRIX_IS_SQUARE(a, b) \
32 FatalErrorInFunction \
33 << "Attempt to create a non-square matrix (" \
34 << a << ", " << b << ')' << nl << abort(FatalError); \
70 template<
class AnyType>
79 for (label i=0; i <
n; ++i)
121 #undef CHECK_MATRIX_IS_SQUARE
SymmetricSquareMatrix & operator=(const SymmetricSquareMatrix &)=default
Copy assignment.
label n() const noexcept
The number of columns.
static constexpr const zero Zero
Global zero (0)
A templated (m x n) matrix of objects of <T>. The layout is (mRows x nCols) - row-major order:
Templated identity and dual space identity tensors derived from SphericalTensor.
#define CHECK_MATRIX_IS_SQUARE(a, b)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
SymmetricSquareMatrix()=default
Default construct.
A templated (N x N) square matrix of objects of <Type>, containing N*N elements, derived from Matrix.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
label m() const noexcept
The number of rows.
Traits class for primitives.
autoPtr< SymmetricSquareMatrix< Type > > clone() const
Clone.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...