8000 fix Numeric not defined error in get_array w/o numpy · LTsommer/matplotlib-cpp@ad0bd6b · GitHub
[go: up one dir, main page]

Skip to content

Commit ad0bd6b

Browse files
committed
fix Numeric not defined error in get_array w/o numpy
1 parent a2bdca7 commit ad0bd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlibcpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ template <> struct select_npy_type<uint64_t> {
365365
template <typename Vector> PyObject *get_array(const Vector &v) {
366366
detail::_interpreter::get(); // interpreter needs to be initialized for the
367367
// numpy commands to work
368-
NPY_TYPES type = select_npy_type<Numeric>::type;
368+
NPY_TYPES type = select_npy_type<typename Vector::value_type>::type;
369369
if (type == NPY_NOTYPE) {
370370
std::vector<double> vd(v.size());
371371
npy_intp vsize = v.size();

0 commit comments

Comments
 (0)
0