14 #ifndef _SPARSEFEATURES__H__
15 #define _SPARSEFEATURES__H__
34 class CRegressionLabels;
37 template <
class ST>
class CDenseFeatures;
159 ST
dense_dot(ST alpha, int32_t num, ST* vec, int32_t dim, ST b);
173 float64_t* vec, int32_t dim,
bool abs_val=
false);
419 #ifndef DOXYGEN_SHOULD_SKIP_THIS
421 struct sparse_feature_iterator
427 int32_t vector_index;
435 SG_SPRINT(
"sv=%p, vidx=%d, num_feat_entries=%d, index=%d\n",
436 sv.features, vector_index, sv.num_feat_entries, index);
482 virtual const char*
get_name()
const {
return "SparseFeatures"; }