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 03e60dc commit 613a5c6Copy full SHA for 613a5c6
lib/matplotlib/tri/_tri.cpp
@@ -1371,7 +1371,7 @@ TrapezoidMapTriFinder::find_many(const Py::Tuple& args)
1371
PyArrayObject* y = (PyArrayObject*)PyArray_ContiguousFromObject(
1372
args[1].ptr(), PyArray_DOUBLE, 0, 0);
1373
bool ok = (x != 0 && y != 0 && PyArray_NDIM(x) == PyArray_NDIM(y));
1374
- int ndim = PyArray_NDIM(x);
+ int ndim = x == 0 ? 0 : PyArray_NDIM(x);
1375
for (int i = 0; ok && i < ndim; ++i)
1376
ok = (PyArray_DIM(x,i) == PyArray_DIM(y,i));
1377
0 commit comments