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>
A templated 2D matrix of objects of <T>, where the n x m matrix dimensions are known and used for sub...
Matrix()
Null constructor.
label size() const
Return the number of elements in matrix (n*m)
Type * operator[](const label)
Return subscript-checked row of Matrix.
label n() const
Return the number of rows.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const Matrix< Form, Type > & null()
Return a null Matrix.
autoPtr< Matrix< Form, Type > > clone() const
Clone.
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void checkj(const label j) const
Check index j is within valid range (0 ... m-1).
void checki(const label i) const
Check index i is within valid range (0 ... n-1).
label m() const
Return the number of columns.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...