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

## Detailed Description

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

Partial specialization of generic elementwise_square for the Eigen3 backend.

Definition at line 89 of file ElementwiseSquare.h.

## Public Types

typedef Matrix::Scalar T

typedef SGMatrix< TReturnType

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

## Static Public Member Functions

static SGMatrix< Tcompute (SGMatrix< T > m)

static SGMatrix< Tcompute (Block< SGMatrix< T > > b)

static void compute (SGMatrix< T > mat, SGMatrix< T > result)

static void compute (Block< SGMatrix< T > > b, SGMatrix< T > result)

## Member Typedef Documentation

 typedef Eigen::Matrix MatrixXt

Eigen3 matrix type

Definition at line 98 of file ElementwiseSquare.h.

 typedef SGMatrix ReturnType

The return type

Definition at line 95 of file ElementwiseSquare.h.

 typedef Matrix::Scalar T

The scalar type

Definition at line 92 of file ElementwiseSquare.h.

## Member Function Documentation

 static SGMatrix compute ( SGMatrix< T > m )
static

Method that computes the square of co-efficients of a dense matrix

Parameters
 m the matrix whose squared co-efficients matrix has to be computed
Returns
another matrix whose co-efficients are $$m'_{i,j}=m_(i,j}^2$$ for all $$i,j$$

Definition at line 107 of file ElementwiseSquare.h.

 static SGMatrix compute ( Block< SGMatrix< T > > b )
static

Method that computes the square of co-efficients of a dense matrix-block

Parameters
 b the matrix-block whose squared co-efficients matrix has to be computed
Returns
another matrix whose co-efficients are $$m'_{i,j}=b_(i,j}^2$$ for all $$i,j$$

Definition at line 121 of file ElementwiseSquare.h.

 static void compute ( SGMatrix< T > mat, SGMatrix< T > result )
static

Method that computes the square of co-efficients of a dense matrix

Parameters
 mat the matrix whose squared co-efficients matrix has to be computed result Pre-allocated matrix for the result of the computation

Definition at line 134 of file ElementwiseSquare.h.

 static void compute ( Block< SGMatrix< T > > b, SGMatrix< T > result )
static

Method that computes the square of co-efficients of a dense matrix-block

Parameters
 b the matrix-block whose squared co-efficients matrix has to be computed result Pre-allocated matrix for the result of the computation

Definition at line 148 of file ElementwiseSquare.h.

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

SHOGUN Machine Learning Toolbox - Documentation