#include <matrix-common.h>

Public Member Functions | |
| MatrixIndexT | NumRows () const |
| MatrixIndexT | NumCols () const |
| MatrixIndexT | NumElements () const |
| template<typename OtherReal > | |
| void | CopyToMat (CuMatrixBase< OtherReal > *dest, MatrixTransposeType trans=kNoTrans) const |
| Real | Sum () const |
| Real | FrobeniusNorm () const |
| CuSparseMatrix< Real > & | operator= (const SparseMatrix< Real > &smat) |
| Copy from CPU-based matrix. More... | |
| CuSparseMatrix< Real > & | operator= (const CuSparseMatrix< Real > &smat) |
| Copy from possibly-GPU-based matrix. More... | |
| template<typename OtherReal > | |
| void | CopyFromSmat (const SparseMatrix< OtherReal > &smat) |
| Copy from CPU-based matrix. More... | |
| void | CopyFromSmat (const CuSparseMatrix< Real > &smat, MatrixTransposeType trans=kNoTrans) |
| Copy from GPU-based matrix, supporting transposition. More... | |
| void | SelectRows (const CuArray< int32 > &row_indexes, const CuSparseMatrix< Real > &smat_other) |
| Select a subset of the rows of a CuSparseMatrix. More... | |
| template<typename OtherReal > | |
| void | CopyToSmat (SparseMatrix< OtherReal > *smat) const |
| Copy to CPU-based matrix. More... | |
| void | CopyElementsToVec (CuVectorBase< Real > *vec) const |
| Copy elements to CuVector. More... | |
| void | Swap (SparseMatrix< Real > *smat) |
| Swap with CPU-based matrix. More... | |
| void | Swap (CuSparseMatrix< Real > *smat) |
| Swap with possibly-CPU-based matrix. More... | |
| void | SetRandn (BaseFloat zero_prob) |
| Sets up to a pseudo-randomly initialized matrix, with each element zero with probability zero_prob and else normally distributed- mostly for purposes of testing. More... | |
| void | Write (std::ostream &os, bool binary) const |
| void | Read (std::istream &is, bool binary) |
| CuSparseMatrix () | |
| Default constructor. More... | |
| CuSparseMatrix (const SparseMatrix< Real > &smat) | |
| Constructor from CPU-based sparse matrix. More... | |
| CuSparseMatrix (const CuSparseMatrix< Real > &smat, MatrixTransposeType trans=kNoTrans) | |
| Constructor from GPU-based sparse matrix (supports transposition). More... | |
| CuSparseMatrix (const CuArray< int32 > &indexes, int32 dim, MatrixTransposeType trans=kNoTrans) | |
| Constructor from an array of indexes. More... | |
| CuSparseMatrix (const CuArray< int32 > &indexes, const CuVectorBase< Real > &weights, int32 dim, MatrixTransposeType trans=kNoTrans) | |
| Constructor from an array of indexes and an array of weights; requires indexes.Dim() == weights.Dim(). More... | |
| ~CuSparseMatrix () | |
Protected Member Functions | |
| const SparseMatrix< Real > & | Smat () const |
| SparseMatrix< Real > & | Smat () |
| void | Resize (const MatrixIndexT num_rows, const MatrixIndexT num_cols, const MatrixIndexT nnz, MatrixResizeType resize_type=kSetZero) |
| Users of this class won't normally have to use Resize. More... | |
| const Real * | CsrVal () const |
| Returns pointer to the data array of length nnz_ that holds all nonzero values in zero-based CSR format. More... | |
| Real * | CsrVal () |
| const int * | CsrRowPtr () const |
| Returns pointer to the integer array of length NumRows()+1 that holds indices of the first nonzero element in the i-th row, while the last entry contains nnz_, as zero-based CSR format is used. More... | |
| int * | CsrRowPtr () |
| const int * | CsrColIdx () const |
| Returns pointer to the integer array of length nnz_ that contains the column indices of the corresponding elements in array CsrVal() More... | |
| int * | CsrColIdx () |
Private Member Functions | |
| void | Destroy () |
Private Attributes | |
| std::vector< SparseVector< Real > > | cpu_rows_ |
| MatrixIndexT | num_rows_ |
| MatrixIndexT | num_cols_ |
| MatrixIndexT | nnz_ |
| int * | csr_row_ptr_col_idx_ |
| Real * | csr_val_ |
Friends | |
| class | CuMatrixBase< float > |
| class | CuMatrixBase< double > |
| class | CuMatrixBase< Real > |
| class | CuVectorBase< float > |
| class | CuVectorBase< double > |
| class | CuVectorBase< Real > |
| Real | TraceMatSmat (const CuMatrixBase< Real > &A, const CuSparseMatrix< Real > &B, MatrixTransposeType trans) |
Definition at line 78 of file matrix-common.h.
|
inline |
Default constructor.
Definition at line 123 of file cu-sparse-matrix.h.
Referenced by CuSparseMatrix< Real >::CuSparseMatrix().
|
inlineexplicit |
Constructor from CPU-based sparse matrix.
Definition at line 129 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::CopyFromSmat().
|
inline |
Constructor from GPU-based sparse matrix (supports transposition).
Definition at line 136 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CuSparseMatrix(), and kaldi::kNoTrans.
| CuSparseMatrix | ( | const CuArray< int32 > & | indexes, |
| int32 | dim, | ||
| MatrixTransposeType | trans = kNoTrans |
||
| ) |
Constructor from an array of indexes.
If trans == kNoTrans, construct a sparse matrix with num-rows == indexes.Dim() and num-cols = 'dim'. 'indexes' is expected to contain elements in the range [0, dim - 1]. Each row 'i' of *this after calling the constructor will contain a single element at column-index indexes[i] with value 1.0.
If trans == kTrans, the result will be the transpose of the sparse matrix described above.
Definition at line 162 of file cu-sparse-matrix.cc.
References CuArrayBase< T >::CopyFromArray(), CuArrayBase< T >::CopyToVec(), CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), CuArrayBase< T >::Dim(), kaldi::kTrans, kaldi::kUndefined, CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), CuSparseMatrix< Real >::Resize(), CuArrayBase< T >::Sequence(), CuVectorBase< Real >::Set(), CuSparseMatrix< Real >::Smat(), and CuSparseMatrix< Real >::Swap().
| CuSparseMatrix | ( | const CuArray< int32 > & | indexes, |
| const CuVectorBase< Real > & | weights, | ||
| int32 | dim, | ||
| MatrixTransposeType | trans = kNoTrans |
||
| ) |
Constructor from an array of indexes and an array of weights; requires indexes.Dim() == weights.Dim().
If trans == kNoTrans, construct a sparse matrix with num-rows == indexes.Dim() and num-cols = 'dim'. 'indexes' is expected to contain elements in the range [0, dim - 1]. Each row 'i' of *this after calling the constructor will contain a single element at column-index indexes[i] with value weights[i]. If trans == kTrans, the result will be the transpose of the sparse matrix described above.
Definition at line 194 of file cu-sparse-matrix.cc.
References CuArrayBase< T >::CopyFromArray(), CuVectorBase< Real >::CopyFromVec(), CuArrayBase< T >::CopyToVec(), CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), CuArrayBase< T >::Dim(), kaldi::kTrans, kaldi::kUndefined, CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), CuSparseMatrix< Real >::Resize(), CuArrayBase< T >::Sequence(), CuSparseMatrix< Real >::Smat(), CuSparseMatrix< Real >::Swap(), and CuVectorBase< Real >::Vec().
|
inline |
| void CopyElementsToVec | ( | CuVectorBase< Real > * | vec | ) | const |
Copy elements to CuVector.
It is the caller's responsibility to resize <*vec>.
Definition at line 452 of file cu-sparse-matrix.cc.
References CuVectorBase< Real >::CopyFromVec(), CuSparseMatrix< Real >::CsrVal(), CuVectorBase< Real >::Dim(), KALDI_ASSERT, CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::Smat(), and CuVectorBase< Real >::Vec().
| void CopyFromSmat | ( | const SparseMatrix< OtherReal > & | smat | ) |
Copy from CPU-based matrix.
We will add the transpose option later when it is necessary. Resizes *this as needed.
Definition at line 326 of file cu-sparse-matrix.cc.
References CuArrayBase< T >::CopyFromVec(), CuVectorBase< Real >::CopyFromVec(), CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), SparseMatrix< Real >::Data(), rnnlm::i, rnnlm::j, KALDI_ASSERT, kaldi::kUndefined, rnnlm::n, SparseMatrix< Real >::NumCols(), CuSparseMatrix< Real >::NumElements(), SparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), SparseMatrix< Real >::NumRows(), CuSparseMatrix< Real >::Resize(), and CuSparseMatrix< Real >::Smat().
Referenced by CuSparseMatrix< Real >::CuSparseMatrix(), and CuSparseMatrix< Real >::operator=().
| void CopyFromSmat | ( | const CuSparseMatrix< Real > & | smat, |
| MatrixTransposeType | trans = kNoTrans |
||
| ) |
Copy from GPU-based matrix, supporting transposition.
Resizes *this as needed.
Definition at line 370 of file cu-sparse-matrix.cc.
References CuArrayBase< T >::CopyFromArray(), CuVectorBase< Real >::CopyFromVec(), CuSparseMatrix< Real >::csr_row_ptr_col_idx_, CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), kaldi::kNoTrans, kaldi::kUndefined, CuSparseMatrix< Real >::NumCols(), CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), CuSparseMatrix< Real >::Resize(), and CuSparseMatrix< Real >::Smat().
| template void CopyToMat | ( | CuMatrixBase< OtherReal > * | dest, |
| MatrixTransposeType | trans = kNoTrans |
||
| ) | const |
Definition at line 622 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), CU1DBLOCK, CuMatrixBase< Real >::Data(), CuMatrixBase< Real >::Dim(), KALDI_ASSERT, kaldi::kNoTrans, CuMatrixBase< Real >::Mat(), CuSparseMatrix< Real >::NumCols(), CuMatrixBase< Real >::NumCols(), CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), CuMatrixBase< Real >::NumRows(), CuMatrixBase< Real >::SetZero(), and CuSparseMatrix< Real >::Smat().
Referenced by kaldi::nnet3::ComputeObjectiveFunction(), CuMatrixBase< float >::CopyFromGeneralMat(), GeneralMatrix::CopyToMat(), kaldi::UnitTestCuSparseMatrixConstructFromIndexes(), kaldi::UnitTestCuSparseMatrixCopyToSmat(), kaldi::UnitTestCuSparseMatrixFrobeniusNorm(), kaldi::UnitTestCuSparseMatrixSelectRowsAndTranspose(), kaldi::UnitTestCuSparseMatrixSum(), kaldi::UnitTestCuSparseMatrixSwap(), and kaldi::UnitTestCuSparseMatrixTraceMatSmat().
| template void CopyToSmat | ( | SparseMatrix< OtherReal > * | smat | ) | const |
Copy to CPU-based matrix.
We will add the transpose option later when it is necessary.
Definition at line 408 of file cu-sparse-matrix.cc.
References SparseMatrix< Real >::CopyFromSmat(), CuArrayBase< T >::CopyToVec(), CuVectorBase< Real >::CopyToVec(), CuSparseMatrix< Real >::csr_row_ptr_col_idx_, CuSparseMatrix< Real >::CsrVal(), rnnlm::i, rnnlm::j, KALDI_ASSERT, kaldi::kUndefined, rnnlm::n, CuSparseMatrix< Real >::num_cols_, CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), SparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::Smat(), and SparseMatrix< Real >::Swap().
Referenced by CuSparseMatrix< Real >::Swap(), kaldi::UnitTestCuSparseMatrixCopyToSmat(), and CuSparseMatrix< Real >::Write().
|
inlineprotected |
Returns pointer to the integer array of length nnz_ that contains the column indices of the corresponding elements in array CsrVal()
Definition at line 211 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_, and CuSparseMatrix< Real >::num_rows_.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::SelectRows(), and kaldi::TraceMatSmat().
|
inlineprotected |
Definition at line 214 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_, CuSparseMatrix< Real >::Destroy(), and CuSparseMatrix< Real >::num_rows_.
|
inlineprotected |
Returns pointer to the integer array of length NumRows()+1 that holds indices of the first nonzero element in the i-th row, while the last entry contains nnz_, as zero-based CSR format is used.
Definition at line 202 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SelectRows(), and kaldi::TraceMatSmat().
|
inlineprotected |
Definition at line 205 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_.
|
inlineprotected |
Returns pointer to the data array of length nnz_ that holds all nonzero values in zero-based CSR format.
Definition at line 192 of file cu-sparse-matrix.h.
References CuSparseMatrix< Real >::csr_val_.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyElementsToVec(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::CopyToSmat(), CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SelectRows(), and kaldi::TraceMatSmat().
|
inlineprotected |
|
private |
Definition at line 301 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_, CuSparseMatrix< Real >::csr_val_, CuSparseMatrix< Real >::nnz_, CuSparseMatrix< Real >::num_cols_, CuSparseMatrix< Real >::num_rows_, and CuSparseMatrix< Real >::Smat().
Referenced by CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::Resize(), and CuSparseMatrix< Real >::~CuSparseMatrix().
| Real FrobeniusNorm | ( | ) | const |
Definition at line 97 of file cu-sparse-matrix.cc.
References CuVectorBase< Real >::Norm().
Referenced by kaldi::UnitTestCuSparseMatrixFrobeniusNorm().
| MatrixIndexT NumCols | ( | ) | const |
Definition at line 58 of file cu-sparse-matrix.cc.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SelectRows(), kaldi::TraceMatSmat(), kaldi::UnitTestCuSparseMatrixConstructFromIndexes(), kaldi::UnitTestCuSparseMatrixSelectRowsAndTranspose(), and kaldi::UnitTestCuSparseMatrixSwap().
| MatrixIndexT NumElements | ( | ) | const |
Definition at line 70 of file cu-sparse-matrix.cc.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyElementsToVec(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::CopyToSmat(), CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::Resize(), and kaldi::TraceMatSmat().
| MatrixIndexT NumRows | ( | ) | const |
Definition at line 46 of file cu-sparse-matrix.cc.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::CopyToSmat(), CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SelectRows(), kaldi::TraceMatSmat(), kaldi::UnitTestCuSparseMatrixConstructFromIndexes(), kaldi::UnitTestCuSparseMatrixSelectRowsAndTranspose(), and kaldi::UnitTestCuSparseMatrixSwap().
| CuSparseMatrix< Real > & operator= | ( | const SparseMatrix< Real > & | smat | ) |
Copy from CPU-based matrix.
Definition at line 227 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::CopyFromSmat().
| CuSparseMatrix< Real > & operator= | ( | const CuSparseMatrix< Real > & | smat | ) |
Copy from possibly-GPU-based matrix.
Definition at line 234 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::CopyFromSmat(), and kaldi::kNoTrans.
| void Read | ( | std::istream & | is, |
| bool | binary | ||
| ) |
Definition at line 514 of file cu-sparse-matrix.cc.
References SparseMatrix< Real >::Read(), and CuSparseMatrix< Real >::Swap().
|
protected |
Users of this class won't normally have to use Resize.
'nnz' should be determined beforehand when calling this API.
Definition at line 241 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_, CuSparseMatrix< Real >::csr_val_, CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), CuSparseMatrix< Real >::Destroy(), KALDI_ASSERT, kaldi::kSetZero, kaldi::kUndefined, CuSparseMatrix< Real >::nnz_, CuSparseMatrix< Real >::num_cols_, CuSparseMatrix< Real >::num_rows_, CuSparseMatrix< Real >::NumCols(), CuSparseMatrix< Real >::NumElements(), CuSparseMatrix< Real >::NumRows(), CuArrayBase< T >::Set(), CuVectorBase< Real >::Set(), and CuSparseMatrix< Real >::Smat().
Referenced by CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CuSparseMatrix(), and CuSparseMatrix< Real >::Smat().
| void SelectRows | ( | const CuArray< int32 > & | row_indexes, |
| const CuSparseMatrix< Real > & | smat_other | ||
| ) |
Select a subset of the rows of a CuSparseMatrix.
Sets *this to only the rows of 'smat_other' that are listed in 'row_indexes'. 'row_indexes' must satisfy 0 <= row_indexes[i] < smat_other.NumRows().
Definition at line 110 of file cu-sparse-matrix.cc.
References CuArrayBase< T >::CopyToVec(), CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::CsrVal(), CU1DBLOCK, CuArrayBase< T >::Data(), CuArrayBase< T >::Dim(), rnnlm::i, kaldi::kUndefined, CuSparseMatrix< Real >::NumCols(), CuSparseMatrix< Real >::NumRows(), and CuSparseMatrix< Real >::Smat().
Referenced by kaldi::UnitTestCuSparseMatrixSelectRowsAndTranspose().
| void SetRandn | ( | BaseFloat | zero_prob | ) |
Sets up to a pseudo-randomly initialized matrix, with each element zero with probability zero_prob and else normally distributed- mostly for purposes of testing.
Definition at line 497 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::num_cols_, CuSparseMatrix< Real >::num_rows_, SparseMatrix< Real >::SetRandn(), and CuSparseMatrix< Real >::Swap().
|
inlineprotected |
Definition at line 178 of file cu-sparse-matrix.h.
Referenced by CuMatrixBase< float >::AddMatSmat(), CuMatrixBase< float >::AddSmat(), CuMatrixBase< float >::AddSmatMat(), CuSparseMatrix< Real >::CopyElementsToVec(), CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToMat(), CuSparseMatrix< Real >::CopyToSmat(), CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::Destroy(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SelectRows(), CuSparseMatrix< Real >::Swap(), and kaldi::TraceMatSmat().
|
inlineprotected |
Definition at line 181 of file cu-sparse-matrix.h.
References kaldi::kSetZero, and CuSparseMatrix< Real >::Resize().
| Real Sum | ( | ) | const |
Definition at line 82 of file cu-sparse-matrix.cc.
References CuVectorBase< Real >::Sum().
Referenced by kaldi::nnet3::ComputeObjectiveFunction(), and kaldi::UnitTestCuSparseMatrixSum().
| void Swap | ( | SparseMatrix< Real > * | smat | ) |
Swap with CPU-based matrix.
Definition at line 467 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::CopyToSmat(), and CuSparseMatrix< Real >::Smat().
Referenced by CuSparseMatrix< Real >::CuSparseMatrix(), CuSparseMatrix< Real >::Read(), CuSparseMatrix< Real >::SetRandn(), and kaldi::UnitTestCuSparseMatrixSwap().
| void Swap | ( | CuSparseMatrix< Real > * | smat | ) |
Swap with possibly-CPU-based matrix.
Definition at line 481 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::csr_row_ptr_col_idx_, CuSparseMatrix< Real >::csr_val_, CuSparseMatrix< Real >::nnz_, CuSparseMatrix< Real >::num_cols_, CuSparseMatrix< Real >::num_rows_, CuSparseMatrix< Real >::Smat(), and kaldi::swap().
| void Write | ( | std::ostream & | os, |
| bool | binary | ||
| ) | const |
Definition at line 507 of file cu-sparse-matrix.cc.
References CuSparseMatrix< Real >::CopyToSmat(), and SparseMatrix< Real >::Write().
|
friend |
Definition at line 51 of file cu-sparse-matrix.h.
|
friend |
Definition at line 50 of file cu-sparse-matrix.h.
|
friend |
Definition at line 52 of file cu-sparse-matrix.h.
|
friend |
Definition at line 54 of file cu-sparse-matrix.h.
|
friend |
Definition at line 53 of file cu-sparse-matrix.h.
|
friend |
Definition at line 55 of file cu-sparse-matrix.h.
|
friend |
Definition at line 524 of file cu-sparse-matrix.cc.
Referenced by kaldi::TraceMatSmat().
|
private |
Definition at line 224 of file cu-sparse-matrix.h.
|
private |
Definition at line 243 of file cu-sparse-matrix.h.
Referenced by CuSparseMatrix< Real >::CopyFromSmat(), CuSparseMatrix< Real >::CopyToSmat(), CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::CsrRowPtr(), CuSparseMatrix< Real >::Destroy(), CuSparseMatrix< Real >::Resize(), and CuSparseMatrix< Real >::Swap().
|
private |
Definition at line 246 of file cu-sparse-matrix.h.
Referenced by CuSparseMatrix< Real >::CsrVal(), CuSparseMatrix< Real >::Destroy(), CuSparseMatrix< Real >::Resize(), and CuSparseMatrix< Real >::Swap().
|
private |
Definition at line 239 of file cu-sparse-matrix.h.
Referenced by CuSparseMatrix< Real >::Destroy(), CuSparseMatrix< Real >::Resize(), and CuSparseMatrix< Real >::Swap().
|
private |
Definition at line 236 of file cu-sparse-matrix.h.
Referenced by CuSparseMatrix< Real >::CopyToSmat(), CuSparseMatrix< Real >::Destroy(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SetRandn(), and CuSparseMatrix< Real >::Swap().
|
private |
Definition at line 235 of file cu-sparse-matrix.h.
Referenced by CuSparseMatrix< Real >::CsrColIdx(), CuSparseMatrix< Real >::Destroy(), CuSparseMatrix< Real >::Resize(), CuSparseMatrix< Real >::SetRandn(), and CuSparseMatrix< Real >::Swap().