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
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 SGMatrix< Tcompute (SGMatrix< T > A, SGMatrix< T > B, T alpha=1, T beta=1)
 
static void compute (SGMatrix< T > A, SGMatrix< T > B, SGMatrix< T > C, T alpha=1, T beta=1)
 
static SGVector< Tcompute (SGVector< T > A, SGVector< T > B, 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 SGMatrix<T> compute ( SGMatrix< T A,
SGMatrix< T B,
T  alpha = 1,
T  beta = 1 
)
static

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

Parameters
Afirst matrix
Bsecond matrix
alphaconstant to be multiplied by the first matrix
betaconstant to be multiplied by the second matrix
Returns
The return matrix

Definition at line 96 of file Add.h.

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 119 of file Add.h.

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

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

Parameters
Afirst vector
Bsecond vector
alphaconstant to be multiplied by the first vector
betaconstant to be multiplied by the second vector
Returns
The result vector

Definition at line 143 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 162 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 182 of file Add.h.


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

SHOGUN Machine Learning Toolbox - Documentation