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
sum< Backend::EIGEN3, Matrix > Struct Template Reference

Detailed Description

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

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

Definition at line 226 of file Sum.h.

Public Types

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

Static Public Member Functions

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

Member Typedef Documentation

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

Eigen matrix type

Definition at line 232 of file Sum.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 229 of file Sum.h.

Member Function Documentation

static T compute ( SGMatrix< T mat,
bool  no_diag 
)
static

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

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

Definition at line 241 of file Sum.h.

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

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

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

Definition at line 261 of file Sum.h.


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

SHOGUN Machine Learning Toolbox - Documentation