Beispiel #1
0
inline void ActFunc::tanh(MatD& x){
  x = x.unaryExpr(std::ptr_fun(::tanh));
}
Beispiel #2
0
inline void ActFunc::logistic(MatD& x){
  x = x.unaryExpr(std::ptr_fun((Real (*)(const Real))ActFunc::logistic));
}
Beispiel #3
0
inline void ActFunc::logistic(MatD& x){
  x = x.unaryExpr(std::ptr_fun((double (*)(const double))ActFunc::logistic));
}