42#ifndef Foam_RectangularMatrix_H
43#define Foam_RectangularMatrix_H
60 public Matrix<RectangularMatrix<Type>, Type>
99 template<
class AnyType>
118 template<
class MatrixType>
122 template<
class MatrixType>
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)....
A templated block of an (m x n) matrix of type <MatrixType>.
constexpr Matrix() noexcept
label m() const noexcept
The number of rows.
label n() const noexcept
The number of columns.
void operator=(Foam::zero)
Assign all elements to zero.
RectangularMatrix & operator=(const RectangularMatrix &)=default
Copy assignment.
RectangularMatrix(const RectangularMatrix &)=default
Copy construct.
RectangularMatrix(const label n)
Construct a square matrix (rows == columns), uninitialised content.
RectangularMatrix(const ConstMatrixBlock< MatrixType > &mat)
Construct from a block of another matrix.
RectangularMatrix(const MatrixBlock< MatrixType > &mat)
Construct from a block of another matrix.
RectangularMatrix(const SquareMatrix< Type > &mat)
Construct as copy of a square matrix.
void operator=(RectangularMatrix< Type > &&mat)
Move assignment.
RectangularMatrix(const label m, const label n, const Type &val)
Construct given number of rows/columns initializing all elements to the given value.
RectangularMatrix(const labelPair &dims, const Identity< AnyType >)
Construct for given number of rows/columns initializing all elements to zero, and diagonal to one.
RectangularMatrix(Istream &is)
Construct from Istream.
RectangularMatrix(const labelPair &dims, const Type &val)
Construct given number of rows/columns by using a label pair and initializing all elements to the giv...
void operator=(const Type &val)
Assign all elements to value.
autoPtr< RectangularMatrix< Type > > clone() const
Clone.
RectangularMatrix(const labelPair &dims)
Construct given number of rows/columns by using a label pair.
RectangularMatrix(const labelPair &dims, Foam::zero)
Construct given number of rows/columns by using a label pair and initializing all elements to zero.
RectangularMatrix()=default
Default construct.
RectangularMatrix(const label m, const label n)
Construct given number of rows/columns.
RectangularMatrix(const label m, const label n, Foam::zero)
Construct given number of rows/columns initializing all elements to zero.
A templated (N x N) square matrix of objects of <Type>, containing N*N elements, derived from Matrix.
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 ...
Pair< label > labelPair
A pair of labels.