SHOGUN  4.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Static Public Member Functions
add< Backend, Matrix > Struct Template Reference

Detailed Description

template<enum Backend, class Matrix>
struct shogun::linalg::implementation::add< Backend, Matrix >

Generic class which is specialized for different backends to perform addition.

Definition at line 63 of file Add.h.

Public Types

typedef Matrix::Scalar T

Static Public Member Functions

static void compute (Matrix A, Matrix B, Matrix C, T alpha, T beta)

Member Typedef Documentation

typedef Matrix::Scalar T

Scalar type

Definition at line 66 of file Add.h.

Member Function Documentation

static void compute ( Matrix  A,
Matrix  B,
Matrix  C,
T  alpha,
T  beta 
)
static

Performs the operation C = alpha*A + beta*B. Works for both matrices and vectors

Parameters
Afirst matrix
Bsecond matrix
Cmatrix to store the result
alphaconstant to be multiplied by the first matrix
betaconstant to be multiplied by the second matrix

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

SHOGUN Machine Learning Toolbox - Documentation