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

Detailed Description

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

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

Definition at line 350 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

Definition at line 355 of file Sum.h.

typedef SGVector<T> ReturnType

Definition at line 353 of file Sum.h.

typedef Matrix::Scalar T

Definition at line 352 of file Sum.h.

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

Definition at line 356 of file Sum.h.

Member Function Documentation

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

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

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

Definition at line 365 of file Sum.h.

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

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

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

Definition at line 380 of file Sum.h.

static void compute ( SGMatrix< T mat,
SGVector< T result,
bool  no_diag 
)
static

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

Parameters
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

Definition at line 394 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 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

Definition at line 418 of file Sum.h.


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

SHOGUN Machine Learning Toolbox - Documentation