Numpy.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 // These macros are required so that the NumPy API will work when used in
7 // multiple cpp files. See
8 // https://docs.scipy.org/doc/numpy/reference/c-api.array.html#importing-the-api
9 #define NO_IMPORT_ARRAY
10 #define PY_ARRAY_UNIQUE_SYMBOL SPECTRE_DATASTRUCTURES_PYTHON_BINDINGS
11 // Code is clean against Numpy 1.7. See
12 // https://docs.scipy.org/doc/numpy-1.15.1/reference/c-api.deprecations.html
13 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
14 #include <numpy/arrayobject.h>