SHOGUN  4.1.0
所有成员列表 | Public 类型 | 静态 Public 成员函数
add< Backend::EIGEN3, Matrix > 模板结构体 参考

详细描述

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

Partial specialization of add for the Eigen3 backend.

在文件 Add.h 第 195 行定义.

Public 类型

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

静态 Public 成员函数

static SGMatrix< T > compute (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< T > compute (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)
 

成员类型定义说明

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

Eigen3 matrix type

在文件 Add.h 第 201 行定义.

typedef Matrix::Scalar T

Scalar type

在文件 Add.h 第 198 行定义.

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

Eigen3 vector type

在文件 Add.h 第 204 行定义.

成员函数说明

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.

参数
Afirst matrix
Bsecond matrix
alphaconstant to be multiplied by the first matrix
betaconstant to be multiplied by the second matrix
返回
The return matrix

在文件 Add.h 第 214 行定义.

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

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

在文件 Add.h 第 237 行定义.

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.

参数
Afirst vector
Bsecond vector
alphaconstant to be multiplied by the first vector
betaconstant to be multiplied by the second vector
返回
The result vector

在文件 Add.h 第 255 行定义.

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

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

在文件 Add.h 第 274 行定义.


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

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