From 060c3f2170c61dddc2ab4e9899397096c8c7c08f Mon Sep 17 00:00:00 2001 From: Heiko Thiel Date: Tue, 6 Aug 2019 22:49:57 +0200 Subject: [PATCH] Prefer C++ method std::exp over C method exp in doc files --- doc/tutorials/content/writing_new_classes.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tutorials/content/writing_new_classes.rst b/doc/tutorials/content/writing_new_classes.rst index ce8879f3dc1..38b06b7abb2 100644 --- a/doc/tutorials/content/writing_new_classes.rst +++ b/doc/tutorials/content/writing_new_classes.rst @@ -88,7 +88,7 @@ and save the results to disk. float G (float x, float sigma) { - return exp (- (x*x)/(2*sigma*sigma)); + return std::exp (- (x*x)/(2*sigma*sigma)); } int @@ -575,7 +575,7 @@ header file becomes: inline double kernel (double x, double sigma) { - return (exp (- (x*x)/(2*sigma*sigma))); + return (std::exp (- (x*x)/(2*sigma*sigma))); } double sigma_s_; @@ -1118,7 +1118,7 @@ class look like: inline double kernel (double x, double sigma) { - return (exp (- (x*x)/(2*sigma*sigma))); + return (std::exp (- (x*x)/(2*sigma*sigma))); } /** \brief The half size of the Gaussian bilateral filter window (e.g., spatial extents in Euclidean). */