32 #ifndef DENSESUBSAMPLESFEATURES_H 33 #define DENSESUBSAMPLESFEATURES_H 35 #include <shogun/lib/config.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 get_next_feature(int32_t &index, float64_t &value, void *iterator)
virtual ~CDenseSubSamplesFeatures()
virtual int32_t get_dim_feature_space() const
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
virtual bool get_feature_class_compatibility(EFeatureClass rhs) const
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
virtual CFeatures * duplicate() const
Features that support dot products among other operations.
virtual const char * get_name() const
virtual int32_t get_num_vectors() const
EFeatureClass
shogun feature class
virtual bool support_compatible_class() const
void set_features(CDenseFeatures< ST > *fea)
virtual EFeatureClass get_feature_class() const
CDenseSubSamplesFeatures()
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 EFeatureType get_feature_type() const
virtual int32_t get_nnz_features_for_vector(int32_t num)