SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Types | Static Public Member Functions
rowwise_sum< Backend::EIGEN3, Matrix > Struct Template Reference

Detailed Description

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.

Definition at line 457 of file Sum.h.

Public Types

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

Static Public Member Functions

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)
 

Member Typedef Documentation

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

Eigen matrix type

Definition at line 466 of file Sum.h.

typedef SGVector<T> ReturnType

Return type

Definition at line 463 of file Sum.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 460 of file Sum.h.

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

Eigen vector type

Definition at line 469 of file Sum.h.

Member Function Documentation

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

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

Definition at line 478 of file Sum.h.

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

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

Definition at line 493 of file Sum.h.

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

Parameters
matthe 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

Definition at line 507 of file Sum.h.

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

Parameters
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

Definition at line 531 of file Sum.h.


The documentation for this struct was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation