SHOGUN  4.0.0
sum_symmetric< Backend, Matrix > Struct Template Reference

Detailed Description

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

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

Definition at line 101 of file Sum.h.

Public Types

typedef Matrix::Scalar T

Static Public Member Functions

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

Member Typedef Documentation

 typedef Matrix::Scalar T

Scalar type

Definition at line 104 of file Sum.h.

Member Function Documentation

 static T compute ( Matrix m, bool no_diag )
static

Method that computes the sum of co-efficients of a symmetric dense matrix

Parameters
 m the matrix whose sum of co-efficients has to be computed no_diag if true, diagonal entries are excluded from the sum
Returns
the sum of co-efficients computed as $$\sum_{i,j}m_{i,j}$$
 static T compute ( Block< Matrix > b, bool no_diag )
static

Method that computes the sum of co-efficients of symmetric dense matrix blocks

Parameters
 b the matrix-block whose sum of co-efficients has to be computed no_diag if true, diagonal entries are excluded from the sum
Returns
the sum of co-efficients computed as $$\sum_{i,j}b_{i,j}$$

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

SHOGUN Machine Learning Toolbox - Documentation