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::NATIVE, Matrix > Struct Template Reference

Detailed Description

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

Partial specialization of add for the Native backend.

Definition at line 83 of file Add.h.

Public Types

typedef Matrix::Scalar T
 

Static Public Member Functions

static void compute (SGMatrix< T > A, SGMatrix< T > B, SGMatrix< T > C, T alpha=1, T beta=1)
 
static void compute (SGVector< T > A, SGVector< T > B, SGVector< T > C, T alpha=1, T beta=1)
 
static void compute (T *A, T *B, T *C, T alpha, T beta, index_t len)
 

Member Typedef Documentation

typedef Matrix::Scalar T

Scalar type

Definition at line 86 of file Add.h.

Member Function Documentation

static void compute ( SGMatrix< T A,
SGMatrix< T B,
SGMatrix< T C,
T  alpha = 1,
T  beta = 1 
)
static

Performs the operation C = alpha*A + beta*B.

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

Definition at line 96 of file Add.h.

static void compute ( SGVector< T A,
SGVector< T B,
SGVector< T C,
T  alpha = 1,
T  beta = 1 
)
static

Performs the operation C = alpha*A + beta*B.

Parameters
Afirst vector
Bsecond vector
Cvector to store the result
alphaconstant to be multiplied by the first vector
betaconstant to be multiplied by the second vector

Definition at line 114 of file Add.h.

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

Performs the operation C = alpha*A + beta*B. Vectors or Matrices passed as pointers

Parameters
Afirst vector
Bsecond vector
Cvector to store the result
alphaconstant to be multiplied by the first vector
betaconstant to be multiplied by the second vector
lenlength of the vectors/matrices

Definition at line 130 of file Add.h.


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

SHOGUN Machine Learning Toolbox - Documentation