85 Type
x = this->operator[](i);
88 this->operator[](i) = Type(0);
92 this->operator[](i) = Type(1)/
x;
103 DiagonalMatrix<Type> Ainv =
A;
#define forAll(list, i)
Loop across all elements in list.
DiagonalMatrix<Type> is a 2D diagonal matrix of objects of type Type, size nxn.
DiagonalMatrix< Type > & invert()
Invert the diagonal matrix and return itself.
DiagonalMatrix()
Null constructor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A templated (m x n) matrix of objects of <T>.
Type & operator[](const label)
Return element of UList.
static const coefficient A("A", dimPressure, 611.21)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void inv(pointPatchField< tensor > &, const pointPatchField< tensor > &)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)