SHOGUN  4.2.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::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 81 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<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt

Eigen3 matrix type

Definition at line 87 of file Add.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 84 of file Add.h.

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

Eigen3 vector type

Definition at line 90 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 100 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
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 123 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 141 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 160 of file Add.h.


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

SHOGUN Machine Learning Toolbox - Documentation