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

详细描述

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

Partial specialization of add for the Native backend.

在文件 Add.h83 行定义.

Public 类型

typedef Matrix::Scalar T
 

静态 Public 成员函数

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=1, T beta=1)
 
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=1, T beta=1)
 
static void compute (T *A, T *B, T *C, T alpha, T beta, index_t len)
 

成员类型定义说明

typedef Matrix::Scalar T

Scalar type

在文件 Add.h86 行定义.

成员函数说明

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.h96 行定义.

static void compute ( SGMatrix< T A,
SGMatrix< T B,
SGMatrix< T C,
T  alpha = 1,
T  beta = 1 
)
static

Performs the operation C = alpha*A + beta*B.

参数
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.h119 行定义.

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.h143 行定义.

static void compute ( SGVector< T A,
SGVector< T B,
SGVector< T C,
T  alpha = 1,
T  beta = 1 
)
static

Performs the operation C = alpha*A + beta*B.

参数
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.h162 行定义.

static void compute ( T A,
T B,
T C,
T  alpha,
T  beta,
index_t  len 
)
static

Performs the operation C = alpha*A + beta*B. Vectors or Matrices passed as pointers

参数
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
lenlength of the vectors/matrices

在文件 Add.h182 行定义.


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

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