32 #ifndef DENSESUBSAMPLESFEATURES_H
33 #define DENSESUBSAMPLESFEATURES_H
43 template<
class ST>
class CDenseFeatures;
44 template<
class ST>
class SGVector;
61 virtual const char*
get_name()
const {
return "DenseSubSamplesFeatures"; }
137 float64_t* vec2, int32_t vec2_len,
bool abs_val=
false);
203 void check_bound(int32_t index);
void set_subset_idx(SGVector< int32_t > idx)
virtual bool support_compatible_class() const
virtual bool get_next_feature(int32_t &index, float64_t &value, void *iterator)
virtual ~CDenseSubSamplesFeatures()
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
Features that support dot products among other operations.
virtual int32_t get_dim_feature_space() const
EFeatureClass
shogun feature class
virtual EFeatureType get_feature_type() const
void set_features(CDenseFeatures< ST > *fea)
virtual bool get_feature_class_compatibility(EFeatureClass rhs) const
virtual const char * get_name() const
virtual CFeatures * duplicate() const
CDenseSubSamplesFeatures()
virtual int32_t get_num_vectors() const
virtual void * get_feature_iterator(int32_t vector_index)
EFeatureType
shogun feature type
virtual void add_to_dense_vec(float64_t alpha, int32_t vec_idx1, float64_t *vec2, int32_t vec2_len, bool abs_val=false)
The class DenseFeatures implements dense feature matrices.
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual void free_feature_iterator(void *iterator)
virtual int32_t get_nnz_features_for_vector(int32_t num)
virtual EFeatureClass get_feature_class() const