SHOGUN  6.0.0
sum_symmetric< Backend::EIGEN3, Matrix > Struct Template Reference

## Detailed Description

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

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

Definition at line 284 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 MatrixXt

Eigen matrix type

Definition at line 290 of file Sum.h.

 typedef Matrix::Scalar T

Scalar type

Definition at line 287 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 symmetric SGMatrix using Eigen3

Parameters
 mat 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}$$

Definition at line 299 of file Sum.h.

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

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

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}$$

Definition at line 327 of file Sum.h.

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

SHOGUN Machine Learning Toolbox - Documentation