#include <matrix.h>
Public Methods | |
constructors and destructor | |
| MdataC () | |
| default constructor is explicit and creates an empty valarray. | |
| MdataC (const int nr, const int nc, const Tp value) | |
| standard constructor needs at least number of rows and optionally number of columns. | |
| MdataC (const int nr, const int nc, const int nu, const Tp value) | |
| constructor to be called for general banded matrix. | |
| MdataC (const Tp* a, const int nr, const int nc) | |
| constructor from a C style array. | |
| MdataC (const valarray<Tp>& a, const int nr, const int nc) | |
| constructor from a valarray. | |
| ~MdataC () | |
| destructor. | |
miscellaneous helper methods | |
| MdataC* | get_own_copy () |
| this method is called to instantiate a unique copy of the matrix data. | |
| void | assign (const Tp value) |
| assign data array with a constant value. | |
| void | assign (const int nr, const Tp* value) |
| assign with a C-style double array. | |
| void | assign (const int nr, const int nc, const Tp** value) |
| assign with the old LinAl C-style Matrix. | |
| void | resize (const int nr, const int nc) |
| resize the data space allocated w/o loosing any data. | |
Public Attributes | |
MdataC actual data | |
| valarray<Tp> | m |
| matrix coefficients are stored in an STL valarray. | |
| int | nrow |
| number of rows. | |
| int | ncol |
| number of columns. | |
| int | nref |
| number of references to the data. | |
| int | ku |
| the number of superdiagonals (if a banded matrix). | |
| int | kl |
| the number of subdiagonals, kl=nr-ku-1; (if a banded matrix). | |
The actual matrix data is maintained by the class MdataC. Values are stored in an STL valarray. In addition MdataC maintains a reference counter.
|
||||
|
default constructor is explicit and creates an empty valarray.
|
|
||||||||
|
standard constructor needs at least number of rows and optionally number of columns.
|
|
||||||||||
|
constructor to be called for general banded matrix.
|
|
||||||||
|
constructor from a C style array.
|
|
||||||||
|
constructor from a valarray.
|
|
||||
|
destructor.
|
|
||||
|
this method is called to instantiate a unique copy of the matrix data.
|
|
||||
|
assign data array with a constant value.
|
|
||||||
|
assign with a C-style double array.
|
|
||||||||
|
assign with the old LinAl C-style Matrix.
|
|
||||||
|
resize the data space allocated w/o loosing any data.
|
|
|||
|
matrix coefficients are stored in an STL valarray.
|
|
|||
|
number of rows.
|
|
|||
|
number of columns.
|
|
|||
|
number of references to the data.
|
|
|||
|
the number of superdiagonals (if a banded matrix).
|
|
|||
|
the number of subdiagonals, kl=nr-ku-1; (if a banded matrix).
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000