Go to the source code of this file.
Define Documentation
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) \
{ \
SGSparseVector<type>* v; \
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 190 of file File.cpp.