Go to the documentation of this file.
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>&
73 template<
class Form,
class Type>
82 Type** __restrict__
v_;
178 friend Istream&
operator>> <Form, Type>
185 friend Ostream& operator<< <Form, Type>
200 template<
class Form,
class Type> Form
operator+
206 template<
class Form,
class Type> Form
operator-
212 template<
class Form,
class Type> Form
operator*
218 template<
class Form,
class Type> Form
operator*
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.
void allocate()
Allocate the storage for the row-pointers and the data.
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...
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void operator=(const Matrix< Form, Type > &)
Assignment operator. Takes linear time.
void clear()
Clear the Matrix, i.e. set sizes to zero.
label size() const
Return the number of elements in matrix (n*m)
Form T() const
Return the transpose of the matrix.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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...
label n_
Number of rows and columns in Matrix.
void checki(const label i) const
Check index i is within valid range (0 ... n-1).
Type **__restrict__ v_
Row pointers.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Matrix()
Null constructor.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
void transfer(Matrix< Form, Type > &)
Transfer the contents of the argument Matrix into this Matrix.