26template<
typename Real_t>
34 for (
size_t i = 0; i <
m; i++) {
35 for (
size_t j = 0; j <
n; j++) {
42template<
typename Real_t>
49 for (
size_t i = 0; i <
m; i++) {
50 for (
size_t j = 0; j <
n; j++) {
51 A(i,j) = std::max((
Real_t) 0.0,
A(i,j));
57template<
typename Real_t>
65 for (
size_t i = 0; i <
m; i++)
67 for (
size_t j = 0; j <
n; j++)
69 B(i,j) = (
A(i,j) < 0) ? 0.0 : 1.0;
75template<
typename Real_t>
82 for (
size_t i = 0; i <
m; i++) {
83 for (
size_t j = 0; j <
n; j++) {
91template<
typename Real_t>
99 for (
size_t i = 0; i <
m; i++) {
100 for (
size_t j = 0; j <
n; j++) {
102 B(i,j) = sig * (1.0 - sig);
108template<
typename Real_t>
115 for (
size_t i = 0; i <
m; i++) {
116 for (
size_t j = 0; j <
n; j++) {
124template<
typename Real_t>
132 for (
size_t i = 0; i <
m; i++) {
133 for (
size_t j = 0; j <
n; j++) {
141template<
typename Real_t>
148 for (
size_t i = 0; i <
m; i++) {
149 for (
size_t j = 0; j <
n; j++) {
156template<
typename Real_t>
164 for (
size_t i = 0; i <
m; i++) {
165 for (
size_t j = 0; j <
n; j++) {
166 B(i,j) = (
A(i,j) < 0.0) ? -1.0 : 1.0;
172template<
typename Real_t>
179 for (
size_t i = 0; i <
m; i++) {
180 for (
size_t j = 0; j <
n; j++) {
188template<
typename Real_t>
196 for (
size_t i = 0; i <
m; i++) {
197 for (
size_t j = 0; j <
n; j++) {
199 B(i,j) = 1.0 / (
x *
x);
205template<
typename Real_t>
212 for (
size_t i = 0; i <
m; i++) {
213 for (
size_t j = 0; j <
n; j++) {
221template<
typename Real_t>
229 for (
size_t i = 0; i <
m; i++) {
230 for (
size_t j = 0; j <
n; j++) {
232 B(i,j) = - 2.0 *
x *
exp(-
x *
x);
static void SymmetricRelu(TMatrixT< AReal > &B)
static void Relu(TMatrixT< AReal > &B)
static void GaussDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
static void TanhDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
static void IdentityDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
static void Gauss(TMatrixT< AReal > &B)
static void SigmoidDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
static void SoftSignDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
static void Tanh(TMatrixT< AReal > &B)
static void SoftSign(TMatrixT< AReal > &B)
static void Sigmoid(TMatrixT< AReal > &B)
static void SymmetricReluDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
static void ReluDerivative(TMatrixT< AReal > &B, const TMatrixT< AReal > &A)
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
create variable transformations