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
dot< Backend, Vector > Struct Template Reference

Detailed Description

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

Generic class dot 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 64 of file Dot.h.

Public Types

typedef Vector::Scalar T
 

Static Public Member Functions

static T compute (Vector a, Vector b)
 

Member Typedef Documentation

typedef Vector::Scalar T

Scalar type

Definition at line 67 of file Dot.h.

Member Function Documentation

static T compute ( Vector  a,
Vector  b 
)
static

Method that computes the dot product

Parameters
afirst vector
bsecond vector
Returns
the dot product of \(\mathbf{a}\) and \(\mathbf{b}\), computed as \(\sum_i a_i b_i\)

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

SHOGUN Machine Learning Toolbox - Documentation