8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2bdca7 commit ad0bd6bCopy full SHA for ad0bd6b
matplotlibcpp.h
@@ -365,7 +365,7 @@ template <> struct select_npy_type<uint64_t> {
365
template <typename Vector> PyObject *get_array(const Vector &v) {
366
detail::_interpreter::get(); // interpreter needs to be initialized for the
367
// numpy commands to work
368
- NPY_TYPES type = select_npy_type<Numeric>::type;
+ NPY_TYPES type = select_npy_type<typename Vector::value_type>::type;
369
if (type == NPY_NOTYPE) {
370
std::vector<double> vd(v.size());
371
npy_intp vsize = v.size();
0 commit comments