32 #ifndef SPECIAL_PURPOSE_H_ 33 #define SPECIAL_PURPOSE_H_ 35 #ifdef HAVE_LINALG_LIB 48 namespace special_purpose
52 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
53 void logistic(Matrix A, Matrix result)
59 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
60 void multiply_by_logistic_derivative(Matrix A, Matrix C)
66 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
67 void rectified_linear(Matrix A, Matrix result)
73 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
74 void multiply_by_rectified_linear_derivative(Matrix A, Matrix C)
82 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
83 void softmax(Matrix A)
91 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
92 typename Matrix::Scalar cross_entropy(Matrix P, Matrix Q)
100 template <Backend backend=linalg_traits<Core>::backend,
class Matrix>
101 typename Matrix::Scalar squared_error(Matrix P, Matrix Q)
111 #endif // HAVE_LINALG_LIB 112 #endif // SPECIAL_PURPOSE_H_ static void compute(Matrix A)
static T compute(Matrix P, Matrix Q)
static void compute(Matrix A, Matrix result)
static T compute(Matrix P, Matrix Q)
static void compute(Matrix A, Matrix result)
static void compute(Matrix A, Matrix C)
all of classes and functions are contained in the shogun namespace
static void compute(Matrix A, Matrix C)