SHOGUN  6.1.3
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

◆ alloc()

static ReturnType alloc ( Operand  op)

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

Definition at line 65 of file AllocResultUtil.h.

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

SHOGUN Machine Learning Toolbox - Documentation