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

Function PyArray_CompareLists

numpy/core/src/multiarray/multiarraymodule.c:234–245  ·  view source on GitHub ↗

NUMPY_API * Compare Lists */

Source from the content-addressed store, hash-verified

232 * Compare Lists
233 */
234NPY_NO_EXPORT int
235PyArray_CompareLists(npy_intp const *l1, npy_intp const *l2, int n)
236{
237 int i;
238
239 for (i = 0; i < n; i++) {
240 if (l1[i] != l2[i]) {
241 return 0;
242 }
243 }
244 return 1;
245}
246
247/*
248 * simulates a C-style 1-3 dimensional array which can be accessed using

Callers 15

PyArray_CopyAsFlatFunction · 0.85
can_elide_tempFunction · 0.85
PyArray_TakeFromFunction · 0.85
PyArray_ChooseFunction · 0.85
PyArray_LexSortFunction · 0.85
npyiter_new_temp_arrayFunction · 0.85
npyiter_allocate_arraysFunction · 0.85
PyArray_AssignArrayFunction · 0.85
prepare_indexFunction · 0.85
PyArray_CopyObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected