SHOGUN  6.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
List of all members | Static Public Member Functions
allocate_result< Operand, ReturnType > Struct Template Reference

Detailed Description

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).

Definition at line 56 of file AllocResultUtil.h.

Static Public Member Functions

static ReturnType alloc (Operand op)
 

Member Function Documentation

static ReturnType alloc ( Operand  op)
static

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

Parameters
opThe operand for the element-wise operation
Returns
The newly allocated result of ReturnType

Definition at line 65 of file AllocResultUtil.h.


The documentation for this struct was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation