34 #ifndef __DENSEDENSE_TO_SPARSE_HPP__
35 #define __DENSEDENSE_TO_SPARSE_HPP__
40 #define SPARSE_DIA_BLOCK_SIZE 16
41 #define SPARSE_DIA_BLOCK_SIZE_LEN (2*SPARSE_DIA_BLOCK_SIZE+2)
52 template<
class __value_type,
class __index_type=
unsigned int>
72 template<
class __value_type,
class __index_type=
unsigned int>
85 int diag[2*SPARSE_DIA_BLOCK_SIZE];
123 template<
class __value_type,
class __memory_layout_type,
class __index_type >
125 dia_matrix<__value_type,dev_memory_space,__index_type>& C,
126 const dev_block_descriptor<__value_type, __index_type>& Cbd,
127 const tensor<__value_type, dev_memory_space, __memory_layout_type>& A,
128 const tensor<__value_type, dev_memory_space, __memory_layout_type>& B,
129 const __value_type& factAB=1.f,
130 const __value_type& factC =0.f);
132 template<
class __value_type,
class __memory_layout_type,
class __index_type >
134 dia_matrix<__value_type,host_memory_space,__index_type>& C,
135 const host_block_descriptor<__value_type, __index_type>& Cbd,
136 const tensor<__value_type, host_memory_space, __memory_layout_type>& A,
137 const tensor<__value_type, host_memory_space, __memory_layout_type>& B,
138 const __value_type& factAB=1.f,
139 const __value_type& factC =0.f);