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 |
Creates a newly allocated memory for ReturnType, assuming that the ReturnType is a vector.
op | The operand for the element-wise operation |
在文件 AllocResultUtil.h 第 65 行定义.