#include <boost/numpy/internal.hpp>
Go to the source code of this file.
#define BOOST_NUMPY_INTERNAL |
Definition at line 6 of file src/dtype.cpp.
#define BUILTIN_COMPLEX_DTYPE | ( | bits | ) |
template <> struct builtin_complex_dtype< bits > { \ static dtype get() { return DTYPE_FROM_CODE(NPY_COMPLEX ## bits); } \ }; \ template dtype get_complex_dtype< bits >()
Definition at line 28 of file src/dtype.cpp.
#define BUILTIN_FLOAT_DTYPE | ( | bits | ) |
template <> struct builtin_float_dtype< bits > { \ static dtype get() { return DTYPE_FROM_CODE(NPY_FLOAT ## bits); } \ }; \ template dtype get_float_dtype< bits >()
Definition at line 22 of file src/dtype.cpp.
#define BUILTIN_INT_DTYPE | ( | bits | ) |
template <> struct builtin_int_dtype< bits, false > { \ static dtype get() { return DTYPE_FROM_CODE(NPY_INT ## bits); } \ }; \ template <> struct builtin_int_dtype< bits, true > { \ static dtype get() { return DTYPE_FROM_CODE(NPY_UINT ## bits); } \ }; \ template dtype get_int_dtype< bits, false >(); \ template dtype get_int_dtype< bits, true >()
Definition at line 12 of file src/dtype.cpp.
#define DTYPE_FROM_CODE | ( | code | ) | dtype(python::detail::new_reference(reinterpret_cast<PyObject*>(PyArray_DescrFromType(code)))) |
Definition at line 9 of file src/dtype.cpp.