44 #ifndef RTOP_SPARSE_SUB_VECTOR_H
45 #define RTOP_SPARSE_SUB_VECTOR_H
133 RTOp_index_type global_offset;
135 RTOp_index_type sub_dim;
137 RTOp_index_type sub_nz;
139 const RTOp_value_type *values;
141 ptrdiff_t values_stride;
148 ptrdiff_t indices_stride;
150 ptrdiff_t local_offset;
158 void RTOp_sparse_sub_vector(
159 RTOp_index_type global_offset, RTOp_index_type sub_dim, RTOp_index_type sub_nz
160 ,
const RTOp_value_type values[], ptrdiff_t values_stride
161 ,
const RTOp_index_type indices[], ptrdiff_t indices_stride
162 ,ptrdiff_t local_offset,
int is_sorted
173 void RTOp_sparse_sub_vector_from_dense(
const RTOp_index_type * indices