MCPcopy Index your code
hub / github.com/numpy/numpy / _diff

Function _diff

numpy/testing/_private/utils.py:1952–1954  ·  view source on GitHub ↗
(rx, ry, vdt)

Source from the content-addressed store, hash-verified

1950 raise ValueError(f"Arrays do not have the same shape: {x.shape} - {y.shape}")
1951
1952 def _diff(rx, ry, vdt):
1953 diff = np.asarray(rx - ry, dtype=vdt)
1954 return np.abs(diff)
1955
1956 rx = integer_repr(x)
1957 ry = integer_repr(y)

Callers 1

nulp_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…