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

详细描述

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

Specialization of generic rowwise_sum which works with SGMatrix and uses Eigen3 as backend for computing sum.

在文件 Sum.h460 行定义.

Public 类型

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

静态 Public 成员函数

static SGVector< Tcompute (SGMatrix< T > m, bool no_diag)
 
static SGVector< Tcompute (Block< SGMatrix< T > > b, bool no_diag)
 
static void compute (SGMatrix< T > mat, SGVector< T > result, bool no_diag)
 
static void compute (Block< SGMatrix< T > > b, SGVector< T > result, bool no_diag)
 

成员类型定义说明

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

Eigen matrix type

在文件 Sum.h469 行定义.

typedef SGVector<T> ReturnType

Return type

在文件 Sum.h466 行定义.

typedef Matrix::Scalar T

Scalar type

在文件 Sum.h463 行定义.

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

Eigen vector type

在文件 Sum.h472 行定义.

成员函数说明

static SGVector<T> compute ( SGMatrix< T m,
bool  no_diag 
)
static

Method that computes the row wise sum of co-efficients of SGMatrix using Eigen3

参数
mthe matrix whose rowwise sum of co-efficients has to be computed
no_diagif true, diagonal entries are excluded from the sum
返回
the rowwise sum of co-efficients computed as \(s_i=\sum_{j}m_{i,j}\)

在文件 Sum.h481 行定义.

static SGVector<T> compute ( Block< SGMatrix< T > >  b,
bool  no_diag 
)
static

Method that computes the row wise sum of co-efficients of SGMatrix blocks using Eigen3

参数
bthe matrix-block whose rowwise sum of co-efficients has to be computed
no_diagif true, diagonal entries are excluded from the sum
返回
the rowwise sum of co-efficients computed as \(s_i=\sum_{j}m_{i,j}\)

在文件 Sum.h496 行定义.

static void compute ( SGMatrix< T mat,
SGVector< T result,
bool  no_diag 
)
static

Method that computes the row wise sum of co-efficients of SGMatrix using Eigen3

参数
mthe matrix whose rowwise sum of co-efficients has to be computed
no_diagif true, diagonal entries are excluded from the sum
resultPre-allocated vector for the result of the computation

在文件 Sum.h510 行定义.

static void compute ( Block< SGMatrix< T > >  b,
SGVector< T result,
bool  no_diag 
)
static

Method that computes the column wise sum of co-efficients of SGMatrix blocks using Eigen3

参数
bthe matrix-block whose rowwise sum of co-efficients has to be computed
no_diagif true, diagonal entries are excluded from the sum
resultPre-allocated vector for the result of the computation

在文件 Sum.h534 行定义.


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

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