SHOGUN  4.2.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, Vector > Struct Template Reference

Detailed Description

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

Generic class vector_sum which provides a static compute method. This class is specialized for different types of vectors and backend, providing a mean to deal with various vectors directly without having to convert.

Definition at line 65 of file VectorSum.h.

Public Types

typedef Vector::Scalar T
 

Static Public Member Functions

static T compute (Vector a)
 

Member Typedef Documentation

typedef Vector::Scalar T

Scalar type

Definition at line 68 of file VectorSum.h.

Member Function Documentation

static T compute ( Vector  a)
static

Method that computes the vector sum

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

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

SHOGUN Machine Learning Toolbox - Documentation