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

详细描述

template<enum Backend, class Matrix>
struct shogun::linalg::implementation::colwise_sum< Backend, Matrix >

Generic class colwise_sum which provides a static compute method. This class is specialized for different types of matrices and backend, providing a means to deal with various matrices directly without having to convert.

在文件 Sum.h131 行定义.

Public 类型

typedef Matrix::Scalar T
 

静态 Public 成员函数

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

成员类型定义说明

typedef Matrix::Scalar T

Scalar type

在文件 Sum.h134 行定义.

成员函数说明

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

Method that computes column wise sum of co-efficients of a dense matrix

参数
mthe matrix whose colwise sum of co-efficients has to be computed
no_diagif true, diagonal entries are excluded from the sum
返回
the colwise sum of co-efficients computed as \(s_j=\sum_{i}m_{i,j}\)
static SGVector<T> compute ( Block< Matrix >  b,
bool  no_diag 
)
static

Method that computes column wise sum of co-efficients of dense matrix blocks

参数
bthe matrix-block whose colwise sum of co-efficients has to be computed
no_diagif true, diagonal entries are excluded from the sum
返回
the colwise sum of co-efficients computed as \(s_j=\sum_{i}b_{i,j}\)
static void compute ( SGMatrix< T m,
SGVector< T result,
bool  no_diag 
)
static

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

参数
mthe matrix whose colwise 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
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 colwise 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

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

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