SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
宏定义
File.cpp 文件参考

浏览源代码.

宏定义

#define SPARSE_VECTOR_GETTER(type)
 

宏定义说明

#define SPARSE_VECTOR_GETTER (   type)
值:
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; \
}
#define ASSERT(x)
Definition: SGIO.h:201
template class SGSparseVectorEntry
Definition: File.h:23

在文件 File.cpp198 行定义.


SHOGUN 机器学习工具包 - 项目文档