54 template<
class Form,
class Type>
class Matrix;
56 template<
class Form,
class Type> Istream&
operator>>
62 template<
class Form,
class Type> Ostream&
operator<<
65 const Matrix<Form, Type>&
68 template<
class MatrixType>
71 template<
class MatrixType>
79 template<
class Form,
class Type>
88 Type* __restrict__ v_;
106 inline static const mType&
null();
129 template<
class Form2>
133 template<
class MatrixType>
137 template<
class MatrixType>
165 inline const Type*
v()
const;
181 template<
class VectorSpace>
210 template<
class VectorSpace>
278 template<
class MatrixType>
282 template<
class MatrixType>
295 friend Istream&
operator>> <Form, Type>
302 friend Ostream& operator<< <Form, Type>
312 template<
class Form,
class Type>
315 template<
class Form,
class Type>
318 template<
class Form,
class Type>
321 template<
class Form,
class Type>
325 const Matrix<Form, Type>&
328 template<
class Form,
class Type>
331 const Matrix<Form, Type>&,
332 const Matrix<Form, Type>&
335 template<
class Form,
class Type>
339 const Matrix<Form, Type>&
342 template<
class Form,
class Type>
345 const Matrix<Form, Type>&,
349 template<
class Form,
class Type>
352 const Matrix<Form, Type>&,
356 template<
class Form1,
class Form2,
class Type>
364 template<
class Form,
class Type>
367 const Matrix<Form, Type>&,
label n() const
Return the number of columns.
Abstract template class to provide the form resulting from.
void shallowResize(const label m, const label n)
Resize the matrix without reallocating storage (unsafe)
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 checki(const label i) const
Check index i is within valid range (0 ... m-1).
autoPtr< mType > clone() const
Clone.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Form T() const
Return the transpose of the matrix.
A templated block of an (m x n) matrix of type <MatrixType>.
void setSize(const label m, const label n)
Resize the matrix preserving the elements.
Matrix()
Null constructor.
void checkj(const label j) const
Check index j is within valid range (0 ... n-1).
static const mType & null()
Return a null Matrix.
label size() const
Return the number of elements in matrix (m*n)
Pre-declare SubField and related Field type.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
void clear()
Clear the Matrix, i.e. set sizes to zero.
A templated (m x n) matrix of objects of <T>.
Type * operator[](const label)
Return subscript-checked row of Matrix.
Type cmptType
Component type.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
void operator=(const mType &)
Assignment operator. Takes linear time.
Matrix< Form, Type > mType
Matrix type.
ConstMatrixBlock< mType > block(const label m, const label n, const label mStart, const label nStart) const
label m() const
Return the number of rows.
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...
A class for managing temporary objects.
const Type * v() const
Return element vector of the constant Matrix.
const Type & operator()(const label i, const label j) const
(i, j) const element access operator
void transfer(mType &)
Transfer the contents of the argument Matrix into this Matrix.
ConstMatrixBlock< mType > col(const label m, const label rowStart) const