Go to the documentation of this file.
28 template<
class Form,
class Type>
37 template<
class Form,
class Type>
47 template<
class Form,
class Type>
50 return NullObjectRef<Matrix<Form, Type> >();
55 template<
class Form,
class Type>
62 template<
class Form,
class Type>
69 template<
class Form,
class Type>
76 template<
class Form,
class Type>
82 <<
"attempt to access element from zero sized row"
85 else if (i<0 || i>=n_)
88 <<
"index " << i <<
" out of range 0 ... " << n_-1
94 template<
class Form,
class Type>
100 <<
"attempt to access element from zero sized column"
103 else if (j<0 || j>=m_)
106 <<
"index " << j <<
" out of range 0 ... " << m_-1
114 template<
class Form,
class Type>
124 template<
class Form,
class Type>
label m() const
Return the number of columns.
void checkj(const label j) const
Check index j is within valid range (0 ... m-1).
autoPtr< Matrix< Form, Type > > clone() const
Clone.
label n() const
Return the number of rows.
A templated 2D matrix of objects of <T>, where the n x m matrix dimensions are known and used for sub...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label size() const
Return the number of elements in matrix (n*m)
errorManip< error > abort(error &err)
Type * operator[](const label)
Return subscript-checked row of Matrix.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const Matrix< Form, Type > & null()
Return a null Matrix.
void checki(const label i) const
Check index i is within valid range (0 ... n-1).
Matrix()
Null constructor.