SHOGUN  4.1.0
add< Backend::EIGEN3, Matrix > Struct Template Reference

## Detailed Description

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

Partial specialization of add for the Eigen3 backend.

Definition at line 195 of file Add.h.

## Public Types

typedef Matrix::Scalar T

typedef Eigen::Matrix< T,
Eigen::Dynamic, Eigen::Dynamic >
MatrixXt

typedef Eigen::Matrix< T,
Eigen::Dynamic, 1 >
VectorXt

## 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, T beta)

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, T beta)

## Member Typedef Documentation

 typedef Eigen::Matrix MatrixXt

Eigen3 matrix type

Definition at line 201 of file Add.h.

 typedef Matrix::Scalar T

Scalar type

Definition at line 198 of file Add.h.

 typedef Eigen::Matrix VectorXt

Eigen3 vector type

Definition at line 204 of file Add.h.

## Member Function Documentation

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

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

Parameters
 A first matrix B second matrix alpha constant to be multiplied by the first matrix beta constant to be multiplied by the second matrix
Returns
The return matrix

Definition at line 214 of file Add.h.

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

Performs the operation C = alpha*A + beta*B using Eigen3

Parameters
 A first matrix B second matrix C matrix to store the result alpha constant to be multiplied by the first matrix beta constant to be multiplied by the second matrix

Definition at line 237 of file Add.h.

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

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

Parameters
 A first vector B second vector alpha constant to be multiplied by the first vector beta constant to be multiplied by the second vector
Returns
The result vector

Definition at line 255 of file Add.h.

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

Performs the operation C = alpha*A + beta*B using Eigen3

Parameters
 A first vector B second vector C vector to store the result alpha constant to be multiplied by the first vector beta constant to be multiplied by the second vector

Definition at line 274 of file Add.h.

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

SHOGUN Machine Learning Toolbox - Documentation