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); \
77 template<
class AnyType>
86 for (
label i=0; i <
n; ++i)
128 #undef CHECK_MATRIX_IS_SQUARE
label ListType::const_reference val
static constexpr const zero Zero
Global zero.
A templated (m x n) matrix of objects of <T>. The layout is (mRows x nCols) - row-major order:
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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)....
void operator=(const zero)
Assign all elements to zero.
label n() const noexcept
The number of columns.
A templated 2D square symmetric matrix of objects of <T>, where the n x n matrix dimension is known a...
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.
SymmetricSquareMatrix()
Construct null.
autoPtr< SymmetricSquareMatrix< Type > > clone() const
Clone.
A class representing the concept of 0 (zero), which can be used to avoid manipulating objects that ar...