[asl] 07/33: Replace includes: math.h -> cmath

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu May 5 18:40:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository asl.

commit 003be03b67a818138e0f7590b32932feb3c323c5
Author: Avtech Scientific <AvtechScientific at users.noreply.github.com>
Date:   Thu Sep 24 12:53:40 2015 +0300

    Replace includes: math.h -> cmath
---
 src/aslUtilities.h                           | 10 +++++-----
 src/math/aslInterpolation.h                  |  2 +-
 src/math/aslVectorsDynamicLength.h           |  2 +-
 src/math/aslVectorsDynamicLengthOperations.h |  3 +--
 src/math/aslVectorsUtilities.h               |  5 ++---
 5 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/aslUtilities.h b/src/aslUtilities.h
index feda553..f6b476b 100644
--- a/src/aslUtilities.h
+++ b/src/aslUtilities.h
@@ -26,12 +26,12 @@
 #ifndef ASLUTILITIES_H
 #define ASLUTILITIES_H
 
-//#include <CL/cl.hpp>
-// Supply "cl.hpp" with ASL, since it is not present in OpenCL 2.0
-// Remove the file after switching to OpenCL 2.1
+//#include <CL/cl.hpp>
+// Supply "cl.hpp" with ASL, since it is not present in OpenCL 2.0
+// Remove the file after switching to OpenCL 2.1
 #include "acl/cl.hpp"
-#include "acl/aclStdIncludes.h"
-#include <math.h>
+#include "acl/aclStdIncludes.h"
+#include <cmath>
 #include <iostream>
 #include <sstream>
 #include <iomanip>
diff --git a/src/math/aslInterpolation.h b/src/math/aslInterpolation.h
index a1a37d0..2879e1b 100644
--- a/src/math/aslInterpolation.h
+++ b/src/math/aslInterpolation.h
@@ -28,7 +28,7 @@
 
 
 #include "../aslUtilities.h"
-#include <math.h>
+#include <cmath>
 
 
 namespace asl
diff --git a/src/math/aslVectorsDynamicLength.h b/src/math/aslVectorsDynamicLength.h
index 4558612..5c65e76 100644
--- a/src/math/aslVectorsDynamicLength.h
+++ b/src/math/aslVectorsDynamicLength.h
@@ -28,7 +28,7 @@
 
 
 #include "../aslUtilities.h"
-#include <math.h>
+#include <cmath>
 
 
 namespace asl
diff --git a/src/math/aslVectorsDynamicLengthOperations.h b/src/math/aslVectorsDynamicLengthOperations.h
index e417ff4..932c060 100644
--- a/src/math/aslVectorsDynamicLengthOperations.h
+++ b/src/math/aslVectorsDynamicLengthOperations.h
@@ -28,7 +28,7 @@
 
 
 #include "../aslUtilities.h"
-#include <math.h>
+#include <cmath>
 
 
 namespace asl
@@ -407,4 +407,3 @@ namespace asl
 } // asl
 
 #endif //ASLVECTORSDYNAMICLENGTH_H
-
diff --git a/src/math/aslVectorsUtilities.h b/src/math/aslVectorsUtilities.h
index 607f714..69e1afb 100644
--- a/src/math/aslVectorsUtilities.h
+++ b/src/math/aslVectorsUtilities.h
@@ -28,14 +28,14 @@
 
 
 #include "aslVectors.h"
-#include <math.h>
+#include <cmath>
 
 
 namespace asl {
 
 
 /*
-  ///  The function makese possible an output to a stream
+  ///  The function makes possible an output to a stream
   template <int I,typename T> inline std::ostream& operator<<(std::ostream &f,const Vec<I,T> &a) {
     for (int i(0);i<I-1;++i)f<<a[i]<<' ';  return f<<a[I-1];
   }
@@ -113,4 +113,3 @@ namespace asl {
 }
 
 #endif
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/asl.git



More information about the debian-science-commits mailing list