MCPcopy Create free account
hub / github.com/numpy/numpy / find_first_negative_dimension

Function find_first_negative_dimension

numpy/f2py/src/fortranobject.c:726–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724 const char *errmess);
725
726static int
727find_first_negative_dimension(const int rank, const npy_intp *dims)
728{
729 int i;
730 for (i = 0; i < rank; ++i) {
731 if (dims[i] < 0) {
732 return i;
733 }
734 }
735 return -1;
736}
737
738#ifdef DEBUG_COPY_ND_ARRAY
739void

Callers 1

ndarray_from_pyobjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected