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

diagonal_matrix< T, S > Class Template Reference

#include <diagonal_matrix.h>

Inheritance diagram for diagonal_matrix< T, S >:

matrix< T, S >

Public Member Functions

 diagonal_matrix (const vector< S > &_val)
void multiply (const packed_vector< S > &_x, packed_vector< S > &_b) const

Private Attributes

vector< S > _val

Detailed Description

template<class T, class S>
class diagonal_matrix< T, S >

The diagonal_matrix class provides an implementation of the diagonal matrix storage format.
Author:
Manfred Liebmann


Constructor & Destructor Documentation

template<class T, class S>
diagonal_matrix< T, S >::diagonal_matrix const vector< S > &  _val  )  [inline]
 

The constructor takes the digonal matrix value vectors of the diagonal matrix storage format.

Parameters:
_val Input: Vector of matrix values.


Member Function Documentation

template<class T, class S>
void diagonal_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<S> diagonal_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