예제 #1
0
파일: ActFunc.hpp 프로젝트: StevenLOL/N3LP
inline void ActFunc::tanh(MatD& x){
  x = x.unaryExpr(std::ptr_fun(::tanh));
}
예제 #2
0
파일: ActFunc.hpp 프로젝트: StevenLOL/N3LP
inline void ActFunc::logistic(MatD& x){
  x = x.unaryExpr(std::ptr_fun((Real (*)(const Real))ActFunc::logistic));
}
예제 #3
0
파일: ActFunc.hpp 프로젝트: yehaibuaa/N3LP
inline void ActFunc::logistic(MatD& x){
  x = x.unaryExpr(std::ptr_fun((double (*)(const double))ActFunc::logistic));
}