SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
io
宏定义
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; \
}
在文件
File.cpp
第
190
行定义.
SHOGUN
机器学习工具包 - 项目文档