imate
C++/CUDA Reference
|
#include <c_csc_matrix.h>
Public Member Functions | |
cCSCMatrix () | |
cCSCMatrix (const DataType *A_data_, const LongIndexType *A_indices_, const LongIndexType *A_index_pointer_, const LongIndexType num_rows_, const LongIndexType num_columns_) | |
virtual | ~cCSCMatrix () |
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_csc_matrix.h.
cCSCMatrix< DataType >::cCSCMatrix |
Definition at line 26 of file c_csc_matrix.cpp.
cCSCMatrix< DataType >::cCSCMatrix | ( | 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_csc_matrix.cpp.
|
virtual |
Definition at line 62 of file c_csc_matrix.cpp.
|
virtual |
Implements cLinearOperator< DataType >.
Reimplemented in cuCSCMatrix< DataType >.
Definition at line 139 of file c_csc_matrix.cpp.
References cMatrixOperations< DataType >::csc_matvec().
|
virtual |
Implements cMatrix< DataType >.
Reimplemented in cuCSCMatrix< DataType >.
Definition at line 159 of file c_csc_matrix.cpp.
References cMatrixOperations< DataType >::csc_matvec_plus().
LongIndexType cCSCMatrix< DataType >::get_nnz |
Returns the number of non-zero elements of the sparse matrix.
The nnz of a CSC 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 columns of the matrix.
Definition at line 128 of file c_csc_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_csc_matrix.cpp.
|
virtual |
Implements cLinearOperator< DataType >.
Reimplemented in cuCSCMatrix< DataType >.
Definition at line 180 of file c_csc_matrix.cpp.
References cMatrixOperations< DataType >::csc_transposed_matvec().
|
virtual |
Implements cMatrix< DataType >.
Reimplemented in cuCSCMatrix< DataType >.
Definition at line 199 of file c_csc_matrix.cpp.
References cMatrixOperations< DataType >::csc_transposed_matvec_plus().
|
protected |
Definition at line 70 of file c_csc_matrix.h.
|
protected |
Definition at line 72 of file c_csc_matrix.h.
|
protected |
Definition at line 71 of file c_csc_matrix.h.