summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserge-sans-paille <serge.guelton@telecom-bretagne.eu>2022-04-02 23:59:53 +0200
committerserge-sans-paille <serge.guelton@telecom-bretagne.eu>2022-04-02 23:59:53 +0200
commit20b68d37082571172482b644e5c17da7a8b6cc75 (patch)
tree69353306f0f5a56dfe1d69dc96dc02e8f919c6b3
parent3232622b70124402268365301c68b71706672d93 (diff)
downloadnumpy-20b68d37082571172482b644e5c17da7a8b6cc75.tar.gz
Use C++ version of C headers for C++ sources
-rw-r--r--numpy/core/src/npysort/radixsort.cpp2
-rw-r--r--numpy/core/tests/data/generate_umath_validation_data.cpp6
-rw-r--r--numpy/linalg/umath_linalg.cpp8
3 files changed, 8 insertions, 8 deletions
diff --git a/numpy/core/src/npysort/radixsort.cpp b/numpy/core/src/npysort/radixsort.cpp
index 5393869ee..0e1a41c69 100644
--- a/numpy/core/src/npysort/radixsort.cpp
+++ b/numpy/core/src/npysort/radixsort.cpp
@@ -4,7 +4,7 @@
#include "npysort_common.h"
#include "../common/numpy_tag.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <type_traits>
/*
diff --git a/numpy/core/tests/data/generate_umath_validation_data.cpp b/numpy/core/tests/data/generate_umath_validation_data.cpp
index 418eae670..51ee12501 100644
--- a/numpy/core/tests/data/generate_umath_validation_data.cpp
+++ b/numpy/core/tests/data/generate_umath_validation_data.cpp
@@ -1,10 +1,10 @@
#include <algorithm>
#include <fstream>
#include <iostream>
-#include <math.h>
+#include <cmath>
#include <random>
-#include <stdio.h>
-#include <time.h>
+#include <cstdio>
+#include <ctime>
#include <vector>
struct ufunc {
diff --git a/numpy/linalg/umath_linalg.cpp b/numpy/linalg/umath_linalg.cpp
index 830d8f70d..bbeb37906 100644
--- a/numpy/linalg/umath_linalg.cpp
+++ b/numpy/linalg/umath_linalg.cpp
@@ -18,10 +18,10 @@
#include "npy_cblas.h"
-#include <stddef.h>
-#include <stdio.h>
-#include <assert.h>
-#include <math.h>
+#include <cstddef>
+#include <cstdio>
+#include <cassert>
+#include <cmath>
#include <utility>