クラス テンプレート TNT::Sparse_Matrix_CompRow< T >

#include <tnt_sparse_matrix_csr.h>

すべてのメンバ一覧

Public メソッド

 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_CompRowoperator= (const Sparse_Matrix_CompRow &R)

Private 変数

Array1D< T > val_
Array1D< int > rowptr_
Array1D< int > colind_
int dim1_
int dim2_


説明

template<class T>
class TNT::Sparse_Matrix_CompRow< T >

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.

tnt_sparse_matrix_csr.h48 行で定義されています。


コンストラクタとデストラクタ

template<class T >
TNT::Sparse_Matrix_CompRow< T >::Sparse_Matrix_CompRow ( const Sparse_Matrix_CompRow< T > &  S  ) 

template<class T >
TNT::Sparse_Matrix_CompRow< T >::Sparse_Matrix_CompRow ( int  M,
int  N,
int  nz,
const T *  val,
const int *  r,
const int *  c 
) [inline]

Construct a read-only view of existing sparse matrix in compressed-row storage format.

引数:
M the number of rows of sparse matrix
N the number of columns of sparse matrix
nz the number of nonzeros
val a contiguous list of nonzero values
r row-pointers: r[i] denotes the begining position of row i (i.e. the ith row begins at val[row[i]]).
c column-indices: c[i] denotes the column location of val[i]

tnt_sparse_matrix_csr.h95 行で定義されています。


関数

template<class T >
const int& TNT::Sparse_Matrix_CompRow< T >::col_ind ( int  i  )  const [inline]

tnt_sparse_matrix_csr.h68 行で定義されています。

参照先 TNT::Sparse_Matrix_CompRow< T >::colind_.

template<class T >
int TNT::Sparse_Matrix_CompRow< T >::dim1 (  )  const [inline]

tnt_sparse_matrix_csr.h70 行で定義されています。

参照先 TNT::Sparse_Matrix_CompRow< T >::dim1_.

template<class T >
int TNT::Sparse_Matrix_CompRow< T >::dim2 (  )  const [inline]

tnt_sparse_matrix_csr.h71 行で定義されています。

参照先 TNT::Sparse_Matrix_CompRow< T >::dim2_.

template<class T >
int TNT::Sparse_Matrix_CompRow< T >::NumNonzeros (  )  const [inline]

tnt_sparse_matrix_csr.h72 行で定義されています。

参照先 TNT::Sparse_Matrix_CompRow< T >::val_.

template<class T >
Sparse_Matrix_CompRow& TNT::Sparse_Matrix_CompRow< T >::operator= ( const Sparse_Matrix_CompRow< T > &  R  ) 

template<class T >
const int& TNT::Sparse_Matrix_CompRow< T >::row_ptr ( int  i  )  const [inline]

tnt_sparse_matrix_csr.h67 行で定義されています。

参照先 TNT::Sparse_Matrix_CompRow< T >::rowptr_.

template<class T >
const T& TNT::Sparse_Matrix_CompRow< T >::val ( int  i  )  const [inline]

tnt_sparse_matrix_csr.h66 行で定義されています。

参照先 TNT::Sparse_Matrix_CompRow< T >::val_.


変数

template<class T >
Array1D<int> TNT::Sparse_Matrix_CompRow< T >::colind_ [private]

tnt_sparse_matrix_csr.h53 行で定義されています。

参照元 TNT::Sparse_Matrix_CompRow< T >::col_ind().

template<class T >
int TNT::Sparse_Matrix_CompRow< T >::dim1_ [private]

tnt_sparse_matrix_csr.h55 行で定義されています。

参照元 TNT::Sparse_Matrix_CompRow< T >::dim1().

template<class T >
int TNT::Sparse_Matrix_CompRow< T >::dim2_ [private]

tnt_sparse_matrix_csr.h56 行で定義されています。

参照元 TNT::Sparse_Matrix_CompRow< T >::dim2().

template<class T >
Array1D<int> TNT::Sparse_Matrix_CompRow< T >::rowptr_ [private]

tnt_sparse_matrix_csr.h52 行で定義されています。

参照元 TNT::Sparse_Matrix_CompRow< T >::row_ptr().

template<class T >
Array1D<T> TNT::Sparse_Matrix_CompRow< T >::val_ [private]


このクラスの説明は次のファイルから生成されました:

TNTに対してThu Nov 13 00:45:18 2008に生成されました。  doxygen 1.5.7.1