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

Detailed Description

struct shogun::linalg::implementation::special_purpose::squared_error< Backend::EIGEN3, Matrix >

Specialization of squared_error for the Eigen3 backend

Definition at line 534 of file implementation/SpecialPurpose.h.

Public Types

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

Static Public Member Functions

static T compute (SGMatrix< T > P, SGMatrix< T > Q)

Member Typedef Documentation

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

Definition at line 537 of file implementation/SpecialPurpose.h.

typedef Matrix::Scalar T

Definition at line 536 of file implementation/SpecialPurpose.h.

Member Function Documentation

static T compute ( SGMatrix< T P,
SGMatrix< T Q 

Returns the squared error between P and Q. The squared error is defined as \( E(P,Q) = \frac{1}{2} \sum_{ij} (P[i,j]-Q[i,j])^2 \)

Definition at line 542 of file implementation/SpecialPurpose.h.

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

SHOGUN Machine Learning Toolbox - Documentation