SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Types | Static Public Member Functions
vector_sum< Backend::NATIVE, Vector > Struct Template Reference

Detailed Description

template<class Vector>
struct shogun::linalg::implementation::vector_sum< Backend::NATIVE, Vector >

Specialization of generic vector_sum for the Native backend.

Definition at line 85 of file VectorSum.h.

Public Types

typedef Vector::Scalar T
 

Static Public Member Functions

static T compute (SGVector< T > vec)
 
static T compute (T *vec, index_t len)
 

Member Typedef Documentation

typedef Vector::Scalar T

Scalar type

Definition at line 88 of file VectorSum.h.

Member Function Documentation

static T compute ( SGVector< T vec)
static

Method that computes the sum of SGVectors

Parameters
veca vector whose sum has to be computed
Returns
the vector sum \(\sum_i a_i\)

Definition at line 96 of file VectorSum.h.

static T compute ( T vec,
index_t  len 
)
static

Method that computes the sum of SGVectors

Parameters
veca vector whose sum has to be computed
lenthe length of the vector
Returns
the vector sum \(\sum_i a_i\)

Definition at line 109 of file VectorSum.h.


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

SHOGUN Machine Learning Toolbox - Documentation