1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

std::sqrt

This commit is contained in:
Leonid Fedorov
2025-07-15 22:28:28 +00:00
parent 8677c69cd2
commit e61583c81b
3 changed files with 10 additions and 15 deletions

View File

@@ -15,6 +15,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
#include <cmath>
#include <cstring>
#include "corr.h"
@@ -193,8 +194,8 @@ mcsv1_UDAF::ReturnCode corr::evaluate(mcsv1Context* context, static_any::any& va
// When var_popy is 0, NULL is the result
return mcsv1_UDAF::SUCCESS;
}
long double std_popx = sqrt(var_popx);
long double std_popy = sqrt(var_popy);
long double std_popx = std::sqrt(var_popx);
long double std_popy = std::sqrt(var_popy);
long double corr = cxy / (std_popy * std_popx * N);
valOut = static_cast<double>(corr);
}