diff options
Diffstat (limited to 'src/slopestd.h')
-rw-r--r-- | src/slopestd.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/slopestd.h b/src/slopestd.h index 116ce1c..5b556ea 100644 --- a/src/slopestd.h +++ b/src/slopestd.h | |||
@@ -11,22 +11,11 @@ namespace Neural | |||
11 | sigtype tpltanh( sigtype sInput ); | 11 | sigtype tpltanh( sigtype sInput ); |
12 | 12 | ||
13 | template<> | 13 | template<> |
14 | float tpltanh<float>( float sInput ) | 14 | float tpltanh<float>( float sInput ); |
15 | { | ||
16 | return tanhf( sInput ); | ||
17 | } | ||
18 | |||
19 | template<> | 15 | template<> |
20 | double tpltanh<double>( double sInput ) | 16 | double tpltanh<double>( double sInput ); |
21 | { | ||
22 | return tanh( sInput ); | ||
23 | } | ||
24 | |||
25 | template<> | 17 | template<> |
26 | long double tpltanh<long double>( long double sInput ) | 18 | long double tpltanh<long double>( long double sInput ); |
27 | { | ||
28 | return tanhl( sInput ); | ||
29 | } | ||
30 | 19 | ||
31 | template<typename sigtype> | 20 | template<typename sigtype> |
32 | class SlopeStd : public Slope<sigtype> | 21 | class SlopeStd : public Slope<sigtype> |