40 output[counter]=alphas[counter]*
dense_dot(vec, dim)+b;
47 if ((counter>=num_vec) && (num_vec>0))
58 vec = SG_REALLOC(
float32_t, vec, len, dim);
59 memset(&vec[len], 0, (dim-len) *
sizeof(
float32_t));
69 vec = SG_REALLOC(
float64_t, vec, len, dim);
70 memset(&vec[len], 0, (dim-len) *
sizeof(
float64_t));
virtual void start_parser()=0
virtual float32_t dense_dot(const float32_t *vec2, int32_t vec2_len)=0
virtual ~CStreamingDotFeatures()
virtual void free_feature_iterator(void *iterator)
virtual void * get_feature_iterator()
void set_property(EFeatureProperty p)
#define SG_NOTIMPLEMENTED
virtual void dense_dot_range(float32_t *output, float32_t *alphas, float32_t *vec, int32_t dim, float32_t b, int32_t num_vec=0)
Features that support dot products among other operations.
virtual bool get_next_feature(int32_t &index, float32_t &value, void *iterator)
virtual int32_t get_dim_feature_space() const =0
virtual bool get_next_example()=0
virtual void expand_if_required(float32_t *&vec, int32_t &len)
all of classes and functions are contained in the shogun namespace
virtual void end_parser()=0
virtual void release_example()=0
Streaming features are features which are used for online algorithms.
virtual int32_t get_nnz_features_for_vector()