From 768ec0850745659bce2f57f06eee4505c8b96f13 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Rolland Date: Thu, 15 Sep 2022 09:35:44 +0200 Subject: [PATCH] Use log and sqrt instead of logf and sqrtf for f64 --- Source/MatrixFunctions/arm_mat_cholesky_f64.c | 2 +- Source/StatisticsFunctions/arm_kullback_leibler_f64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/MatrixFunctions/arm_mat_cholesky_f64.c b/Source/MatrixFunctions/arm_mat_cholesky_f64.c index d8a70d43..735c522f 100755 --- a/Source/MatrixFunctions/arm_mat_cholesky_f64.c +++ b/Source/MatrixFunctions/arm_mat_cholesky_f64.c @@ -198,7 +198,7 @@ arm_status arm_mat_cholesky_f64( return(ARM_MATH_DECOMPOSITION_FAILURE); } - invSqrtVj = 1.0f/sqrtf(pG[i * n + i]); + invSqrtVj = 1.0f/sqrt(pG[i * n + i]); SCALE_COL_F64(pDst,i,invSqrtVj,i); } diff --git a/Source/StatisticsFunctions/arm_kullback_leibler_f64.c b/Source/StatisticsFunctions/arm_kullback_leibler_f64.c index 3b77aef2..bc1cc9c6 100755 --- a/Source/StatisticsFunctions/arm_kullback_leibler_f64.c +++ b/Source/StatisticsFunctions/arm_kullback_leibler_f64.c @@ -90,7 +90,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA,const float64_t * pSr { pA = *pInA++; pB = *pInB++; - accum += pA * logf(pB/pA); + accum += pA * log(pB/pA); blkCnt--;