From 5be3c492288e4c5286dce0b3817104d11ceea494 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 22 Jun 2013 15:40:08 +0000 Subject: [PATCH] sqrt -> std::sqrt --- gtsam/nonlinear/WhiteNoiseFactor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/nonlinear/WhiteNoiseFactor.h b/gtsam/nonlinear/WhiteNoiseFactor.h index 26e20ac08..910444cf8 100644 --- a/gtsam/nonlinear/WhiteNoiseFactor.h +++ b/gtsam/nonlinear/WhiteNoiseFactor.h @@ -24,7 +24,7 @@ namespace gtsam { - const double logSqrt2PI = log(sqrt(2.0 * M_PI)); ///< constant needed below + const double logSqrt2PI = log(std::sqrt(2.0 * M_PI)); ///< constant needed below /** * @brief Binary factor to estimate parameters of zero-mean Gaussian white noise @@ -137,7 +137,7 @@ namespace gtsam { * TODO: Where is this used? should disappear. */ virtual Vector unwhitenedError(const Values& x) const { - return Vector_(1, sqrt(2 * error(x))); + return Vector_(1, std::sqrt(2 * error(x))); } /**