43 template<
class MatrixType>
54 template<
class MatrixType>
88 <<
"Attempt to construct a square matrix " 89 << m <<
" x " << n <<
nl 130 if (this->
m() != this->
n())
133 <<
"Attempt to construct a square matrix from a rectangular matrix " 134 << this->
m() <<
" x " << this->
n() <<
nl 177 for (
label i=0; i<this->
n(); i++)
200 for (
label i=0; i<f1f2T.m(); i++)
202 for (
label j=0; j<f1f2T.n(); j++)
204 f1f2T(i, j) = f1[i]*f2[j];
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
A templated block of an (m x n) matrix of type <MatrixType>.
label m() const
Return the number of rows.
void operator=(const zero)
Assignment of all elements to zero.
label n() const
Return the number of columns.
ConstMatrixBlock< mType > block(const label m, const label n, const label mStart, const label nStart) const
static const Identity< scalar > I
Pre-declare SubField and related Field type.
A templated 2D rectangular m x n matrix of objects of <Type>.
errorManip< error > abort(error &err)
const Type & operator()(const label i, const label j) const
(i, j) const element access operator
A templated (m x n) matrix of objects of <T>.
autoPtr< SquareMatrix< Type > > clone() const
Clone.
friend Ostream & operator(Ostream &, const mType &)
void setSize(const label m)
Resize the matrix preserving the elements.
Foam::SquareMatrix< Type > symmOuter(const Field< Type > &f1, const Field< Type > &f2)
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Templated identity and dual space identity tensors derived from SphericalTensor.
A templated 2D square matrix of objects of <T>, where the n x n matrix dimension is known and used fo...
SquareMatrix()
Null constructor.