SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Static Public Member Functions
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 64 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
mthe 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
bthe 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