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

Member Typedef Documentation

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

Eigen3 matrix type

Definition at line 149 of file Add.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 146 of file Add.h.

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

Eigen3 vector type

Definition at line 152 of file Add.h.

Member Function Documentation

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


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

SHOGUN Machine Learning Toolbox - Documentation