CUV
0.9.201304091348
|
Block descriptors on device this class is needed for DIA_Mat = Dense_Mat * Dense_Mat it stores all blocks of size SPARSE_DIA_BLOCK_SIZE x SPARSE_DIA_BLOCK_SIZE of a regluar grid where at least one diagonal crosses the block. More...
#include <densedense_to_sparse.hpp>
Classes | |
struct | block |
One block consists of the index of its upper-left corner and the offsets of all diagonals crossing this block, a Block has Size SPARSE_DIA_BLOCK_SIZE*SPARSE_DIA_BLOCK_SIZE. More... | |
struct | block_array |
Public Types | |
typedef __value_type | value_type |
type of matrix elements | |
typedef __index_type | index_type |
type of matrix indices | |
typedef dia_matrix< value_type, dev_memory_space, index_type > | diamat_type |
matrix-type associated with blockdescriptor |
Public Member Functions | |
dev_block_descriptor (const diamat_type &d) | |
Create a block descriptor for a DIA matrix. | |
~dev_block_descriptor () | |
destroy the block descriptor | |
const block_array & | blocks () const |
int | len () const |
Protected Attributes | |
struct cuv::dev_block_descriptor::block_array | m_blocks |
structure holding the actual data stored in the descriptor |
Block descriptors on device this class is needed for DIA_Mat = Dense_Mat * Dense_Mat it stores all blocks of size SPARSE_DIA_BLOCK_SIZE x SPARSE_DIA_BLOCK_SIZE of a regluar grid where at least one diagonal crosses the block.
Creating Block-Descriptors can take some time, but this pays off when calculating densedense_to_dia (see below)
Definition at line 73 of file densedense_to_sparse.hpp.
cuv::dev_block_descriptor< __value_type, __index_type >::dev_block_descriptor | ( | const diamat_type & | d | ) |
Create a block descriptor for a DIA matrix.
d | a dia-matrix for which to create the block-descriptor. |
|
inline |
Definition at line 101 of file densedense_to_sparse.hpp.
|
inline |
Definition at line 104 of file densedense_to_sparse.hpp.