14 #ifndef _SPARSEFEATURES__H__
15 #define _SPARSEFEATURES__H__
32 class CRegressionLabels;
35 template <
class ST>
class CDenseFeatures;
36 template <
class ST>
class SGSparseMatrix;
74 int32_t num_feat, int32_t num_vec,
bool copy=
false);
191 ST
dense_dot(ST alpha, int32_t num, ST* vec, int32_t dim, ST b);
205 float64_t* vec, int32_t dim,
bool abs_val=
false);
461 #ifndef DOXYGEN_SHOULD_SKIP_THIS
463 struct sparse_feature_iterator
469 int32_t vector_index;
477 SG_SPRINT(
"sv=%p, vidx=%d, num_feat_entries=%d, index=%d\n",
478 sv.features, vector_index, sv.num_feat_entries, index);
524 inline virtual const char*
get_name()
const {
return "SparseFeatures"; }