SHOGUN  4.1.0
所有成员列表 | 静态 Public 成员函数
allocate_result< Operand, ReturnType > 模板结构体 参考

详细描述

template<class Operand, class ReturnType>
struct shogun::linalg::util::allocate_result< Operand, ReturnType >

Template struct allocate_result for allocating objects of return type for element-wise operations. This generic version takes care of the vector types supported by Shogun (SGVector and CGPUVector).

在文件 AllocResultUtil.h 第 56 行定义.

静态 Public 成员函数

static ReturnType alloc (Operand op)
 

成员函数说明

static ReturnType alloc ( Operand  op)
static

Creates a newly allocated memory for ReturnType, assuming that the ReturnType is a vector.

参数
opThe operand for the element-wise operation
返回
The newly allocated result of ReturnType

在文件 AllocResultUtil.h 第 65 行定义.


该结构体的文档由以下文件生成:

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