14 #ifndef _SPARSEFEATURES__H__
15 #define _SPARSEFEATURES__H__
33 template <
class ST>
class CSimpleFeatures;
70 int32_t num_feat, int32_t num_vec,
bool copy=
false);
187 ST
dense_dot(ST alpha, int32_t num, ST* vec, int32_t dim, ST b);
201 float64_t* vec, int32_t dim,
bool abs_val=
false);
466 #ifndef DOXYGEN_SHOULD_SKIP_THIS
468 struct sparse_feature_iterator
479 SG_SPRINT(
"sv=%p, vidx=%d, num_feat_entries=%d, index=%d\n",
480 sv.features, sv.vec_index, sv.num_feat_entries, index);
526 inline virtual const char*
get_name()
const {
return "SparseFeatures"; }