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

idx_matrix< T, S > Class Template Reference

#include <idx_matrix.h>

Inheritance diagram for idx_matrix< T, S >:

matrix< T, S >

Public Member Functions

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

Private Attributes

vector< T > _row
vector< T > _col
vector< S > _val

Detailed Description

template<class T, class S>
class idx_matrix< T, S >

The idx_matrix class provides an implementation of the indexed matrix storage format.
Author:
Manfred Liebmann


Constructor & Destructor Documentation

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

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

Parameters:
_row Input: Vector of row indices.
_col Input: Vector of column indices.
_val Input: Vector of matrix values.


Member Function Documentation

template<class T, class S>
void idx_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> idx_matrix< T, S >::_col [private]
 

Vector of column indices

template<class T, class S>
vector<T> idx_matrix< T, S >::_row [private]
 

Vector of row indices

template<class T, class S>
vector<S> idx_matrix< T, S >::_val [private]
 

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