Defines

DenseFeatures.cpp File Reference

Go to the source code of this file.

Defines

#define GET_FEATURE_TYPE(f_type, sg_type)
#define LOAD(f_load, sg_type)
#define SAVE(f_write, sg_type)

Define Documentation

#define GET_FEATURE_TYPE (   f_type,
  sg_type 
)
Value:
template<> EFeatureType CDenseFeatures<sg_type>::get_feature_type() const \
{                                                                           \
    return f_type;                                                          \
}

Definition at line 594 of file DenseFeatures.cpp.

#define LOAD (   f_load,
  sg_type 
)
Value:
template<> void CDenseFeatures<sg_type>::load(CFile* loader)                \
{                                                                           \
    SG_SET_LOCALE_C;                                                        \
    ASSERT(loader);                                                         \
    sg_type* matrix;                                                        \
    int32_t num_feat;                                                       \
    int32_t num_vec;                                                        \
    loader->f_load(matrix, num_feat, num_vec);                              \
    set_feature_matrix(SGMatrix<sg_type>(matrix, num_feat, num_vec));       \
    SG_RESET_LOCALE;                                                        \
}

Definition at line 953 of file DenseFeatures.cpp.

#define SAVE (   f_write,
  sg_type 
)
Value:
template<> void CDenseFeatures<sg_type>::save(CFile* writer)                \
{                                                                           \
    SG_SET_LOCALE_C;                                                        \
    ASSERT(writer);                                                         \
    writer->f_write(feature_matrix.matrix, feature_matrix.num_rows,         \
            feature_matrix.num_cols);                                       \
    SG_RESET_LOCALE;                                                        \
}

Definition at line 981 of file DenseFeatures.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation