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

Function _is_same_name

numpy/core/src/umath/ufunc_object.c:612–623  ·  view source on GitHub ↗

* Returns 1 if the dimension names pointed by s1 and s2 are the same, * otherwise returns 0. */

Source from the content-addressed store, hash-verified

610 * otherwise returns 0.
611 */
612static int
613_is_same_name(const char* s1, const char* s2)
614{
615 while (_is_alnum_underscore(*s1) && _is_alnum_underscore(*s2)) {
616 if (*s1 != *s2) {
617 return 0;
618 }
619 s1++;
620 s2++;
621 }
622 return !_is_alnum_underscore(*s1) && !_is_alnum_underscore(*s2);
623}
624
625/*
626 * Sets the following fields in the PyUFuncObject 'ufunc':

Callers 1

_parse_signatureFunction · 0.85

Calls 1

_is_alnum_underscoreFunction · 0.85

Tested by

no test coverage detected