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
matrix_product< Backend::EIGEN3, Matrix > Struct Template Reference

Detailed Description

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

Specialization of matrix_product for the Eigen3 backend

Definition at line 83 of file MatrixProduct.h.

Public Types

typedef Matrix::Scalar T
 
typedef SGMatrix< TReturnType
 
typedef Eigen::Matrix< T,
Eigen::Dynamic, Eigen::Dynamic > 
MatrixXt
 

Static Public Member Functions

static ReturnType compute (SGMatrix< T > A, SGMatrix< T > B, bool transpose_A, bool transpose_B)
 
static void compute (SGMatrix< T > A, SGMatrix< T > B, SGMatrix< T > C, bool transpose_A, bool transpose_B, bool overwrite)
 

Member Typedef Documentation

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

Eigen3 matrix type

Definition at line 92 of file MatrixProduct.h.

typedef SGMatrix<T> ReturnType

Return type

Definition at line 89 of file MatrixProduct.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 86 of file MatrixProduct.h.

Member Function Documentation

static ReturnType compute ( SGMatrix< T A,
SGMatrix< T B,
bool  transpose_A,
bool  transpose_B 
)
static

Performs matrix multiplication

Parameters
AFirst matrix
BSecond matrix
transpose_AWhether to the transpose of A should be used instead of A
transpose_BWhether to the transpose of B should be used instead of B
Returns
Result of the operation

Definition at line 102 of file MatrixProduct.h.

static void compute ( SGMatrix< T A,
SGMatrix< T B,
SGMatrix< T C,
bool  transpose_A,
bool  transpose_B,
bool  overwrite 
)
static

Performs matrix multiplication

Parameters
AFirst matrix
BSecond matrix
CResult of the operation
transpose_AWhether to the transpose of A should be used instead of A
transpose_BWhether to the transpose of B should be used instead of B
overwriteIf true, the values in C are overwritten with the result, otherwise, the result is added to the existing values

Definition at line 126 of file MatrixProduct.h.


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

SHOGUN Machine Learning Toolbox - Documentation