CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
cuv::dev_block_descriptor< __value_type, __index_type > Class Template Reference

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>

Collaboration diagram for cuv::dev_block_descriptor< __value_type, __index_type >:
Collaboration graph
[legend]

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_arrayblocks () const
int len () const

Protected Attributes

struct
cuv::dev_block_descriptor::block_array 
m_blocks
 structure holding the actual data stored in the descriptor

Detailed Description

template<class __value_type, class __index_type = unsigned int>
class cuv::dev_block_descriptor< __value_type, __index_type >

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.

Constructor & Destructor Documentation

template<class __value_type , class __index_type = unsigned int>
cuv::dev_block_descriptor< __value_type, __index_type >::dev_block_descriptor ( const diamat_type d)

Create a block descriptor for a DIA matrix.

Parameters
da dia-matrix for which to create the block-descriptor.

Member Function Documentation

template<class __value_type , class __index_type = unsigned int>
const block_array& cuv::dev_block_descriptor< __value_type, __index_type >::blocks ( ) const
inline
Returns
the internal block structure

Definition at line 101 of file densedense_to_sparse.hpp.

template<class __value_type , class __index_type = unsigned int>
int cuv::dev_block_descriptor< __value_type, __index_type >::len ( ) const
inline
Returns
the number of blocks

Definition at line 104 of file densedense_to_sparse.hpp.


The documentation for this class was generated from the following file: