SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Types | Static Public Member Functions
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<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt

Eigen3 matrix type

Definition at line 98 of file ElementwiseSquare.h.

typedef SGMatrix<T> 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<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 107 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 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
mthe matrix whose squared co-efficients matrix has to be computed
resultPre-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
bthe matrix-block whose squared co-efficients matrix has to be computed
resultPre-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