modified SSE code building

This commit is contained in:
2016-02-07 22:54:43 +01:00
parent 5f43fb8cfb
commit bec7a4f3ae
10 changed files with 28 additions and 43 deletions

View File

@@ -18,7 +18,7 @@ namespace ActivationFunction {
* @brief Returns derivation of output, it is slower than version with output as it needs to compute output
* @param input is input of function
*/
inline float derivatedOutput(const float &input) {
inline float derivatedOutput(const float &input) const {
return derivatedOutput(input,operator()(input));
};
@@ -28,13 +28,13 @@ namespace ActivationFunction {
* @param output is output of function
* @see derivatedOutput
*/
virtual float derivatedOutput(const float &input, const float &output) =0;
virtual float derivatedOutput(const float &input, const float &output) const=0;
/**
* @brief Returns value of output
* @param x is input of function
*/
virtual float operator()(const float &x)=0;
virtual float operator()(const float &x) const=0;
/**
* @brief Function returns clone of object