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

Function assert_array_strict_equal

numpy/_core/tests/test_numeric.py:2307–2321  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

2305
2306
2307def assert_array_strict_equal(x, y):
2308 assert_array_equal(x, y)
2309 # Check flags, 32 bit arches typically don't provide 16 byte alignment
2310 if ((x.dtype.alignment <= 8 or
2311 np.intp().dtype.itemsize != 4) and
2312 sys.platform != 'win32'):
2313 assert_(x.flags == y.flags)
2314 else:
2315 assert_(x.flags.owndata == y.flags.owndata)
2316 assert_(x.flags.writeable == y.flags.writeable)
2317 assert_(x.flags.c_contiguous == y.flags.c_contiguous)
2318 assert_(x.flags.f_contiguous == y.flags.f_contiguous)
2319 assert_(x.flags.writebackifcopy == y.flags.writebackifcopy)
2320 # check endianness
2321 assert_(x.dtype.isnative == y.dtype.isnative)
2322
2323
2324class TestClip:

Callers 15

test_simple_doubleMethod · 0.85
test_simple_intMethod · 0.85
test_array_doubleMethod · 0.85
test_simple_complexMethod · 0.85
test_clip_complexMethod · 0.85
test_clip_non_contigMethod · 0.85
test_simple_outMethod · 0.85
test_simple_int64_outMethod · 0.85
test_simple_int32_outMethod · 0.85

Calls 2

assert_array_equalFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…