Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MatrixSP::MrepSP Class Reference

#include <matrixSP.h>

List of all members.

Public Methods

 MrepSP (const int nc=0, const status S=open)
 standard and default constructor.

 MrepSP (const int nc, const int nel, const status _s=closed)
 constructor for a closed sparse matrix.

 ~MrepSP ()
 standard destructor.

MrepSP* get_own_copy ()
 provide copy on write.

void assign (const double value)
 assign with a constant value.

int size () const
 size is the number of coefficients of the Matrix.

void set_status (status ns=open)
 low level function to switch the status of the matrix.

status get_status ()

Public Attributes

status s
 status.

valarray<double>* m
 double vector containing data.

valarray<int>* ia
 int vector containing row indices.

valarray<int>* izh
 int vector containing indices of the diagonal elements.

vector<vectorsp>* v
 representation of an open, editable matrix.

int ncol
 number of columns is common to both representations.

int nref
 reference count.


Constructor & Destructor Documentation

MatrixSP::MrepSP::MrepSP ( const int nc = 0,
const status S = open )
 

standard and default constructor.

MatrixSP::MrepSP::MrepSP ( const int nc,
const int nel,
const status _s = closed )
 

constructor for a closed sparse matrix.

MatrixSP::MrepSP::~MrepSP ( ) [inline]
 

standard destructor.


Member Function Documentation

MrepSP * MatrixSP::MrepSP::get_own_copy ( ) [inline]
 

provide copy on write.

void MatrixSP::MrepSP::assign ( const double value ) [inline]
 

assign with a constant value.

int MatrixSP::MrepSP::size ( ) const [inline]
 

size is the number of coefficients of the Matrix.

void MatrixSP::MrepSP::set_status ( status ns = open ) [inline]
 

low level function to switch the status of the matrix.

status MatrixSP::MrepSP::get_status ( ) [inline]
 


Member Data Documentation

status MatrixSP::MrepSP::s
 

status.

valarray< double >* MatrixSP::MrepSP::m
 

double vector containing data.

valarray< int >* MatrixSP::MrepSP::ia
 

int vector containing row indices.

valarray< int >* MatrixSP::MrepSP::izh
 

int vector containing indices of the diagonal elements.

vector< vectorsp >* MatrixSP::MrepSP::v
 

representation of an open, editable matrix.

int MatrixSP::MrepSP::ncol
 

number of columns is common to both representations.

int MatrixSP::MrepSP::nref
 

reference count.


The documentation for this class was generated from the following file:
Generated at Wed Nov 22 08:38:29 2000 for LinAl - a simple and efficient Matrix library - by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000