imate
C++/CUDA Reference
|
#include <c_csr_matrix.h>
Public Member Functions | |
cCSRMatrix () | |
cCSRMatrix (const DataType *A_data_, const LongIndexType *A_indices_, const LongIndexType *A_index_pointer_, const LongIndexType num_rows_, const LongIndexType num_columns_) | |
virtual | ~cCSRMatrix () |
virtual FlagType | is_identity_matrix () const |
Checks whether the matrix is identity. More... | |
LongIndexType | get_nnz () const |
Returns the number of non-zero elements of the sparse matrix. More... | |
virtual void | dot (const DataType *vector, DataType *product) |
virtual void | dot_plus (const DataType *vector, const DataType alpha, DataType *product) |
virtual void | transpose_dot (const DataType *vector, DataType *product) |
virtual void | transpose_dot_plus (const DataType *vector, const DataType alpha, DataType *product) |
Public Member Functions inherited from cMatrix< DataType > | |
cMatrix () | |
Default constructor. More... | |
virtual | ~cMatrix () |
DataType | get_eigenvalue (const DataType *known_parameters, const DataType known_eigenvalue, const DataType *inquiry_parameters) const |
This virtual function is implemented from its pure virtual function of the base class. In this class, this functio has no use and was only implemented so that this class be able to be instantiated (due to the pure virtual function). More... | |
Public Member Functions inherited from cLinearOperator< DataType > | |
cLinearOperator () | |
Default constructor. More... | |
cLinearOperator (const LongIndexType num_rows_, const LongIndexType num_columns_) | |
Constructor with setting num_rows and num_columns . More... | |
virtual | ~cLinearOperator () |
LongIndexType | get_num_rows () const |
LongIndexType | get_num_columns () const |
void | set_parameters (DataType *parameters_) |
Sets the scalar parameter this->parameters . Parameter is initialized to NULL . However, before calling dot or transpose_dot functions, the parameters must be set. More... | |
IndexType | get_num_parameters () const |
FlagType | is_eigenvalue_relation_known () const |
Returns a flag that determines whether a relation between the parameters of the operator and its eigenvalue(s) is known. More... | |
Protected Attributes | |
const DataType * | A_data |
const LongIndexType * | A_indices |
const LongIndexType * | A_index_pointer |
Protected Attributes inherited from cLinearOperator< DataType > | |
const LongIndexType | num_rows |
const LongIndexType | num_columns |
FlagType | eigenvalue_relation_known |
DataType * | parameters |
IndexType | num_parameters |
Definition at line 29 of file c_csr_matrix.h.
cCSRMatrix< DataType >::cCSRMatrix |
Definition at line 26 of file c_csr_matrix.cpp.
cCSRMatrix< DataType >::cCSRMatrix | ( | const DataType * | A_data_, |
const LongIndexType * | A_indices_, | ||
const LongIndexType * | A_index_pointer_, | ||
const LongIndexType | num_rows_, | ||
const LongIndexType | num_columns_ | ||
) |
Definition at line 39 of file c_csr_matrix.cpp.
|
virtual |
Definition at line 62 of file c_csr_matrix.cpp.
|
virtual |
Implements cLinearOperator< DataType >.
Reimplemented in cuCSRMatrix< DataType >.
Definition at line 138 of file c_csr_matrix.cpp.
References cMatrixOperations< DataType >::csr_matvec().
|
virtual |
Implements cMatrix< DataType >.
Reimplemented in cuCSRMatrix< DataType >.
Definition at line 157 of file c_csr_matrix.cpp.
References cMatrixOperations< DataType >::csr_matvec_plus().
LongIndexType cCSRMatrix< DataType >::get_nnz |
Returns the number of non-zero elements of the sparse matrix.
The nnz of a CSR matrix can be obtained from the last element of A_index_pointer
. The size of array A_index_pointer
is one plus the number of rows of the matrix.
Definition at line 127 of file c_csr_matrix.cpp.
|
virtual |
Checks whether the matrix is identity.
The identity check is primarily performed in the cAffineMatrixFunction
class.
1
if the input matrix is identity, and 0
otherwise.Implements cMatrix< DataType >.
Definition at line 81 of file c_csr_matrix.cpp.
|
virtual |
Implements cLinearOperator< DataType >.
Reimplemented in cuCSRMatrix< DataType >.
Definition at line 178 of file c_csr_matrix.cpp.
References cMatrixOperations< DataType >::csr_transposed_matvec().
|
virtual |
Implements cMatrix< DataType >.
Reimplemented in cuCSRMatrix< DataType >.
Definition at line 198 of file c_csr_matrix.cpp.
References cMatrixOperations< DataType >::csr_transposed_matvec_plus().
|
protected |
Definition at line 70 of file c_csr_matrix.h.
|
protected |
Definition at line 72 of file c_csr_matrix.h.
|
protected |
Definition at line 71 of file c_csr_matrix.h.