Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 8429b1e + 613a5c6 commit a809ef9Copy full SHA for a809ef9
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