SHOGUN  6.1.3
List of all members | Static Public Member Functions
allocate_result< SGMatrix< T >, SGMatrix< ST > > Struct Template Reference

Detailed Description

template<typename T, typename ST>
struct shogun::linalg::util::allocate_result< SGMatrix< T >, SGMatrix< ST > >

Specialization for allocate_result when return type is SGMatrix. Works with different scalar types as well. T defines the scalar type for the operand and whereas ST is the scalar type for the result of the element-wise operation.

Definition at line 77 of file AllocResultUtil.h.

Static Public Member Functions

static SGMatrix< ST > alloc (SGMatrix< T > m)

Member Function Documentation

static SGMatrix<ST> alloc ( SGMatrix< T >  m)

Creates a newly allocated memory for SGMatrix.

mThe operand for the element-wise operation of scalar type T
The newly allocated result of SGMatrix of scalar type ST

Definition at line 85 of file AllocResultUtil.h.

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

SHOGUN Machine Learning Toolbox - Documentation