TemplateTNT::Sparse_Matrix_CompRow class Reference
Main Page Namespace List Compound List File List Namespace Members Compound Members File Members
Copyright By PowCoder代写 加微信 powcoder
TNT::Sparse_Matrix_CompRow Class Template Reference
#include
List of all members.
Public Methods
Sparse_Matrix_CompRow (const Sparse_Matrix_CompRow &S)
Sparse_Matrix_CompRow (int M, int N, int nz, const T *val, const int *r, const int *c)
const T& val (int i) const
const int& row_ptr (int i) const
const int& col_ind (int i) const
int dim1 () const
int dim2 () const
int NumNonzeros () const
Sparse_Matrix_CompRow& operator= (const Sparse_Matrix_CompRow &R)
Detailed Description
template
Read-only view of a sparse matrix in compressed-row storage format. Neither array elements (nonzeros) nor sparsity structure can be modified. If modifications are required, create a new view.
Index values begin at 0.
Storage requirements: An (m x n) matrix with nz nonzeros requires no more than ((T+I)*nz + M*I) bytes, where T is the size of data elements and I is the size of integers.
Constructor & Destructor Documentation
template
TNT::Sparse_Matrix_CompRow
const Sparse_Matrix_CompRow
template
TNT::Sparse_Matrix_CompRow< T >::Sparse_Matrix_CompRow
const T * val,
const int * r,
const int * c )
Construct a read-only view of existing sparse matrix in compressed-row storage format.
Parameters:
the number of rows of sparse matrix
the number of columns of sparse matrix
the number of nonzeros
a contiguous list of nonzero values
row-pointers: r[i] denotes the begining position of row i (i.e. the ith row begins at val[row[i]]).
column-indices: c[i] denotes the column location of val[i]
Member Function Documentation
template
int TNT::Sparse_Matrix_CompRow
template
const int & TNT::Sparse_Matrix_CompRow
int i ) const [inline]
template
int TNT::Sparse_Matrix_CompRow
) const [inline]
template
int TNT::Sparse_Matrix_CompRow
) const [inline]
template
Sparse_Matrix_CompRow
const Sparse_Matrix_CompRow
template
const int & TNT::Sparse_Matrix_CompRow
int i ) const [inline]
template
const T & TNT::Sparse_Matrix_CompRow
int i ) const [inline]
The documentation for this class was generated from the following file: tnt_sparse_matrix_csr.h
Generated at Thu Jun 26 17:26:25 2003 for Template Numerical Toolkit (TNT) by
1.2.5 written by Dimitri van Heesch,
© 1997-2001
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com