SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
SimpleFeatures.cpp File Reference

Go to the source code of this file.

Macros

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

Macro Definition Documentation

#define GET_FEATURE_TYPE (   f_type,
  sg_type 
)
Value:
template<> EFeatureType CSimpleFeatures<sg_type>::get_feature_type() \
{ \
return f_type; \
}
EFeatureType
shogun feature type
Definition: FeatureTypes.h:16

Definition at line 640 of file SimpleFeatures.cpp.

#define LOAD (   f_load,
  sg_type 
)
Value:
template<> void CSimpleFeatures<sg_type>::load(CFile* loader) \
{ \
ASSERT(loader); \
sg_type* matrix; \
int32_t num_feat; \
int32_t num_vec; \
loader->f_load(matrix, num_feat, num_vec); \
set_feature_matrix(matrix, num_feat, num_vec); \
}
#define SG_RESET_LOCALE
Definition: SGIO.h:67
#define SG_SET_LOCALE_C
Definition: SGIO.h:66
#define ASSERT(x)
Definition: SGIO.h:102

Definition at line 959 of file SimpleFeatures.cpp.

#define SAVE (   f_write,
  sg_type 
)
Value:
template<> void CSimpleFeatures<sg_type>::save(CFile* writer) \
{ \
ASSERT(writer); \
writer->f_write(feature_matrix, num_features, num_vectors); \
}
#define SG_RESET_LOCALE
Definition: SGIO.h:67
#define SG_SET_LOCALE_C
Definition: SGIO.h:66
#define ASSERT(x)
Definition: SGIO.h:102

Definition at line 987 of file SimpleFeatures.cpp.


SHOGUN Machine Learning Toolbox - Documentation