SHOGUN  3.2.1
elementwise_square< Backend, Matrix > Struct Template Reference

## Detailed Description

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

Generic class square 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 66 of file ElementwiseSquare.h.

## Static Public Member Functions

static Matrix compute (Matrix m)
static Matrix compute (Block< Matrix > b)

## Member Function Documentation

 static Matrix compute ( Matrix 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$$
 static Matrix compute ( Block< Matrix > 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$$

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

SHOGUN Machine Learning Toolbox - Documentation