SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 类型 | 静态 Public 成员函数
matrix_product< Backend::EIGEN3, Matrix > 模板结构体 参考

详细描述

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

Specialization of matrix_product for the Eigen3 backend

在文件 MatrixProduct.h83 行定义.

Public 类型

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

静态 Public 成员函数

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)
 

成员类型定义说明

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

Eigen3 matrix type

在文件 MatrixProduct.h92 行定义.

typedef SGMatrix<T> ReturnType

Return type

在文件 MatrixProduct.h89 行定义.

typedef Matrix::Scalar T

Scalar type

在文件 MatrixProduct.h86 行定义.

成员函数说明

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

Performs matrix multiplication

参数
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
返回
Result of the operation

在文件 MatrixProduct.h102 行定义.

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

Performs matrix multiplication

参数
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

在文件 MatrixProduct.h126 行定义.


该结构体的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档