Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals

crs_matrix< T, S > Class Template Reference

#include <crs_matrix.h>

Inheritance diagram for crs_matrix< T, S >:

matrix< T, S >

Public Member Functions

 crs_matrix (const vector< T > &_cnt, const vector< T > &_col, const vector< S > &_val)
void multiply (const packed_vector< S > &_x, packed_vector< S > &_b) const

Protected Attributes

vector< T > _cnt
vector< T > _col
vector< S > _val

Detailed Description

template<class T, class S>
class crs_matrix< T, S >

The crs_matrix class provides an implementation of the compressed row matrix storage format.
Author:
Manfred Liebmann


Constructor & Destructor Documentation

template<class T, class S>
crs_matrix< T, S >::crs_matrix const vector< T > &  _cnt,
const vector< T > &  _col,
const vector< S > &  _val
[inline]
 

The constructor takes the count, column and matrix value vectors of the compressed row matrix storage format.

Parameters:
_cnt Input: Vector of column index counts.
_col Input: Vector of column indices.
_val Input: Vector of matrix values.


Member Function Documentation

template<class T, class S>
void crs_matrix< T, S >::multiply const packed_vector< S > &  _x,
packed_vector< S > &  _b
const [inline, virtual]
 

The multiply procedure implements matrix vector multiplication.

Parameters:
_x Input: The vector to be multiplied in packed_vector format
_b Output: The result of the multiplication in packed_vector format

Implements matrix< T, S >.


Field Documentation

template<class T, class S>
vector<T> crs_matrix< T, S >::_cnt [protected]
 

Vector of column index counts

template<class T, class S>
vector<T> crs_matrix< T, S >::_col [protected]
 

Vector of column indices

template<class T, class S>
vector<S> crs_matrix< T, S >::_val [protected]
 

Vector of matrix values


The documentation for this class was generated from the following file:
Generated on Wed Apr 26 17:41:45 2006 for Parallel Toolbox by  doxygen 1.4.2