12 #ifndef _CU_LINEAR_OPERATOR_CU_CSC_AFFINE_MATRIX_FUNCTION_H_
13 #define _CU_LINEAR_OPERATOR_CU_CSC_AFFINE_MATRIX_FUNCTION_H_
20 #include "../_definitions/types.h"
29 template <
typename DataType>
36 const DataType* A_data_,
41 const int num_gpu_devices_);
44 const DataType* A_data_,
49 const DataType* B_data_,
52 const int num_gpu_devices_);
57 const DataType* vector,
61 const DataType* vector,
Base class for affine matrix functions of one parameter.
virtual void transpose_dot(const DataType *vector, DataType *product)
Computes the matrix vector product:
cuCSCMatrix< DataType > B
virtual ~cuCSCAffineMatrixFunction()
cuCSCMatrix< DataType > A
cuCSCAffineMatrixFunction(const DataType *A_data_, const LongIndexType *A_indices_, const LongIndexType *A_index_pointer_, const LongIndexType num_rows_, const LongIndexType num_columns_, const int num_gpu_devices_)
Constructor. Matrix B is assumed to be the identity matrix.
virtual void dot(const DataType *vector, DataType *product)
Computes the matrix vector product: