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

Function is_contiguous

numpy/core/src/multiarray/array_method.c:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105static inline int
106is_contiguous(
107 npy_intp const *strides, PyArray_Descr *const *descriptors, int nargs)
108{
109 for (int i = 0; i < nargs; i++) {
110 if (strides[i] != descriptors[i]->elsize) {
111 return 0;
112 }
113 }
114 return 1;
115}
116
117
118/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected