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
elementwise_square< Backend::EIGEN3, Matrix > Struct Template Reference

Detailed Description

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

Specialization of generic elementwise_square for the Eigen3 backend.

Definition at line 92 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<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt

Definition at line 97 of file ElementwiseSquare.h.

typedef SGMatrix<T> ReturnType

Definition at line 95 of file ElementwiseSquare.h.

typedef Matrix::Scalar T

Definition at line 94 of file ElementwiseSquare.h.

Member Function Documentation

static SGMatrix<T> compute ( SGMatrix< T 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\)

Definition at line 106 of file ElementwiseSquare.h.

static SGMatrix<T> compute ( Block< SGMatrix< T > >  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\)

Definition at line 120 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
mthe matrix whose squared co-efficients matrix has to be computed
resultPre-allocated matrix for the result of the computation

Definition at line 133 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
bthe matrix-block whose squared co-efficients matrix has to be computed
resultPre-allocated matrix for the result of the computation

Definition at line 147 of file ElementwiseSquare.h.


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

SHOGUN Machine Learning Toolbox - Documentation