SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
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)
static

Creates a newly allocated memory for SGMatrix.

Parameters
mThe operand for the element-wise operation of scalar type T
Returns
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