Commit 7a6c6f7c authored by BLANCHARD Pierre's avatar BLANCHARD Pierre

Removed some warnings; Provided exponential eval in double and single...

Removed some warnings; Provided exponential eval in double and single precision; Fixed some maths functions.
parent 2b519b4d
This diff is collapsed.
This diff is collapsed.
......@@ -206,12 +206,16 @@ namespace FBlas {
{ dcopy_(&n, orig, &N_ONE, dest, &N_ONE); }
inline void copy(const unsigned n, float* orig, float* dest)
{ scopy_(&n, orig, &N_ONE, dest, &N_ONE); }
inline void copy(const unsigned n, const float* orig, float* dest)
{ scopy_(&n, orig, &N_ONE, dest, &N_ONE); }
inline void c_copy(const unsigned n, double* orig, double* dest)
{ zcopy_(&n, orig, &N_ONE, dest, &N_ONE); }
inline void c_copy(const unsigned n, const double* orig, double* dest)
{ zcopy_(&n, orig, &N_ONE, dest, &N_ONE); }
inline void c_copy(const unsigned n, float* orig, float* dest)
{ ccopy_(&n, orig, &N_ONE, dest, &N_ONE); }
inline void c_copy(const unsigned n, const float* orig, float* dest)
{ ccopy_(&n, orig, &N_ONE, dest, &N_ONE); }
// copy (variable increment)
inline void copy(const unsigned n, double* orig, const unsigned inco, double* dest, const unsigned incd)
......
......@@ -231,7 +231,7 @@ struct FMath{
static double pow(double x, double y){
return ::pow(x,y);
}
static double pow(float x, float y){
static float pow(float x, float y){
return ::powf(x,y);
}
template <class NumType>
......@@ -257,6 +257,14 @@ struct FMath{
}
}
/** To get exponential */
static double Exp(double x){
return ::exp(x);
}
static float Exp(float x){
return ::expf(x);
}
/** To know if a value is between two others */
template <class NumType>
static bool Between(const NumType inValue, const NumType inMin, const NumType inMax){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment