Main Page | User's Guide | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

Seldon::Matrix< T, Prop, RowSymComplexSparse, Allocator > Class Template Reference

Row-major complex sparse-matrix class. More...

#include <Matrix_SymComplexSparse.hxx>

Inheritance diagram for Seldon::Matrix< T, Prop, RowSymComplexSparse, Allocator >:

Seldon::Matrix_SymComplexSparse< T, Prop, RowSymComplexSparse, Allocator > Seldon::Matrix_Base< T, Allocator > List of all members.

Public Member Functions

 Matrix () throw ()
 Default constructor.
 Matrix (int i, int j)
 Matrix (int i, int j, int real_nz, int imag_nz)
template<class Storage0, class Allocator0, class Storage1, class Allocator1, class Storage2, class Allocator2>
 Matrix (int i, int j, Vector< T, Storage0, Allocator0 > &values, Vector< int, Storage1, Allocator1 > &ptr, Vector< int, Storage2, Allocator2 > &ind, Vector< T, Storage0, Allocator0 > &imag_values, Vector< int, Storage1, Allocator1 > &imag_ptr, Vector< int, Storage2, Allocator2 > &imag_ind)
 Constructor.

Detailed Description

template<class T, class Prop, class Allocator>
class Seldon::Matrix< T, Prop, RowSymComplexSparse, Allocator >

Row-major complex sparse-matrix class.


Member Function Documentation

template<class T, class Prop, class Allocator>
template<class Storage0, class Allocator0, class Storage1, class Allocator1, class Storage2, class Allocator2>
Seldon::Matrix< T, Prop, RowSymComplexSparse, Allocator >::Matrix int  i,
int  j,
Vector< T, Storage0, Allocator0 > &  real_values,
Vector< int, Storage1, Allocator1 > &  real_ptr,
Vector< int, Storage2, Allocator2 > &  real_ind,
Vector< T, Storage0, Allocator0 > &  imag_values,
Vector< int, Storage1, Allocator1 > &  imag_ptr,
Vector< int, Storage2, Allocator2 > &  imag_ind
 

Constructor.

Builds a i by j sparse matrix with non-zero values and indices provided by 'real_values' (values of the real part), 'real_ptr' (pointers for the real part), 'real_ind' (indices for the real part), 'imag_values' (values of the imaginary part), 'imag_ptr' (pointers for the imaginary part) and 'imag_ind' (indices for the imaginary part). Input vectors are released and are empty on exit.

Parameters:
i number of rows.
j number of columns.
real_values values of non-zero entries for the real part.
real_ptr row or column start indices for the real part.
real_ind row or column indices for the real part.
imag_values values of non-zero entries for the imaginary part.
imag_ptr row or column start indices for the imaginary part.
imag_ind row or column indices for the imaginary part.
Warning:
Input vectors 'real_values', 'real_ptr' and 'real_ind', 'imag_values', 'imag_ptr' and 'imag_ind' are empty on exit. Moreover 'j' is assumed to be equal to 'i' so that 'j' is discarded.

template<class T, class Prop, class Allocator>
Seldon::Matrix< T, Prop, RowSymComplexSparse, Allocator >::Matrix int  i,
int  j,
int  real_nz,
int  imag_nz
 

Builds a i by j matrix with real_nz and imag_nz non-zero (stored) elements for the real part and the imaginary part respectively.

Parameters:
i number of rows.
j number of columns.
real_nz number of non-zero elements that are stored for the real part.
imag_nz number of non-zero elements that are store for the imaginary part.
Note:
Matrix values are not initialized.
Warning:
'j' is assumed to be equal to 'i' so that 'j' is discarded.

template<class T, class Prop, class Allocator>
Seldon::Matrix< T, Prop, RowSymComplexSparse, Allocator >::Matrix  )  throw ()
 

Default constructor.

Builds an empty 0x0 matrix.


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 23:38:02 2005 for Multivac by  doxygen 1.4.0