#include <matrixSP.h>
Inheritance diagram for MatrixSP:

Public Types | |
| enum | status { open = 0, closed = 1 } |
| sparse matrices are either closed or open. More... | |
Public Methods | |
| MatrixSP (const int nc=0,const status S=open) | |
| standard constructor has an optional status paramater. | |
| MatrixSP (const int _ncol, const int _nel, const status _s=closed) | |
| constructor for a closed sparse matrix. | |
| MatrixSP (const MatrixSP& B) | |
| copy constructor. | |
| virtual | ~MatrixSP () |
| virtual destructor. | |
| virtual MatrixSP& | operator= (const MatrixSP& B) |
| assignment operator. | |
| virtual MatrixSP& | operator= (const double value) |
| assignment with a constant value. | |
| void | get_own_copy () |
| get own copy of matrix data. | |
| void | set_open () |
| open matrix for editing values. | |
| void | set_closed () |
| close matrix for fast access. | |
| bool | is_open () |
| check whether matrix is open for editing. | |
| void | resize (const int nc, const double value=0) |
| resize Matrix. | |
| virtual int | nr (const int i=0) const |
| number of row elements returns for column i. | |
| virtual int | nc (const int i=0) const |
| number of columns. | |
| virtual int | size () const |
| size is the number of elements of the Matrix. | |
| virtual bool | empty () const |
| true if the Matrix is empty. | |
| double* | get_m () const |
| return a pointer to the double array containing the data. | |
| int* | get_ia () const |
| return a pointer to the int array containing the row indices. | |
| int* | get_izh () const |
| return a pointer to the int array containing the diagonal element indices. | |
| virtual Ref<double> | operator() (const int i, const int j=0) |
| non constant, write access to elements. | |
| virtual double | operator() (const int i, const int j=0) const |
| constant, read only access to elements. | |
| virtual bool | operator== (const MatrixSP &B) |
| logical operator equal, as in the STL. | |
| virtual bool | operator< (const MatrixSP &B) |
| logical operator lesser then, as in the STL. | |
Protected Methods | |
| vectorsp& | operator[] (const int i) const |
| fast sequential access operator[], available to members only. | |
| double* | ref (const int i, const int j) const |
| low level reference to data returns a pointer, use this with care. | |
| double | read (const int i, const int j) const |
| low level read. | |
| void | write (const int i, const int j, const double v) |
| low level write. | |
| void | add (const int i, const int j, const double v) |
| low level add to. | |
| void | sub (const int i, const int j, const double v) |
| low level sub from. | |
| void | mul (const int i, const int j, const double v) |
| low level mul with. | |
| void | div (const int i, const int j, const double v) |
| low level div by. | |
Protected Attributes | |
| MrepSP* | D |
Friends | |
| istream& | operator>> (istream& s, MatrixSP& M) |
| input stream operator for a sparse matrix. | |
| ostream& | operator<< (ostream& s, const MatrixSP& M) |
| output stream operator for a sparse matrix. | |
|
|
sparse matrices are either closed or open.
|
|
|
standard constructor has an optional status paramater.
|
|
|
constructor for a closed sparse matrix.
|
|
|
copy constructor.
|
|
|
virtual destructor.
|
|
|
assignment operator.
|
|
|
assignment with a constant value.
|
|
|
get own copy of matrix data.
|
|
|
open matrix for editing values.
|
|
|
close matrix for fast access.
|
|
|
check whether matrix is open for editing.
|
|
|
resize Matrix.
|
|
|
number of row elements returns for column i.
Reimplemented from Matrix. |
|
|
number of columns.
Reimplemented from Matrix. |
|
|
size is the number of elements of the Matrix.
Reimplemented from Matrix. |
|
|
true if the Matrix is empty.
Reimplemented from Matrix. |
|
|
return a pointer to the double array containing the data.
|
|
|
return a pointer to the int array containing the row indices.
|
|
|
return a pointer to the int array containing the diagonal element indices.
|
|
|
fast sequential access operator[], available to members only.
|
|
|
non constant, write access to elements.
Reimplemented from Matrix. |
|
|
constant, read only access to elements.
Reimplemented from Matrix. |
|
|
low level reference to data returns a pointer, use this with care.
Reimplemented from Matrix. |
|
|
low level read.
Reimplemented from Matrix. |
|
|
low level write.
|
|
|
low level add to.
|
|
|
low level sub from.
|
|
|
low level mul with.
|
|
|
low level div by.
|
|
|
logical operator equal, as in the STL.
|
|
|
logical operator lesser then, as in the STL.
|
|
|
input stream operator for a sparse matrix.
|
|
|
output stream operator for a sparse matrix.
|
|
|
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000