SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
File.cpp File Reference

Go to the source code of this file.

Macros

#define SPARSE_VECTOR_GETTER(type)

Macro Definition Documentation

#define SPARSE_VECTOR_GETTER (   type)
Value:
void CFile::set_sparse_vector( \
const SGSparseVectorEntry<type>* entries, int32_t num_feat) \
{ \
SGSparseVector<type> v((SGSparseVectorEntry<type>*) entries, num_feat, false); \
set_sparse_matrix(&v, 0, 1); \
} \
\
void CFile::get_sparse_vector( \
SGSparseVectorEntry<type>*& entries, int32_t& num_feat) \
{ \
int32_t dummy; \
int32_t nvec; \
get_sparse_matrix(v, dummy, nvec); \
ASSERT(nvec==1) \
entries=v->features; \
num_feat=v->num_feat_entries; \
}

Definition at line 196 of file File.cpp.


SHOGUN Machine Learning Toolbox - Documentation