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

Function check_contig

numpy/core/tests/test_api.py:547–549  ·  view source on GitHub ↗
(a, ccontig, fcontig)

Source from the content-addressed store, hash-verified

545 b = np.ones((2, 2, 1, 2, 2)).swapaxes(3, 4)
546
547 def check_contig(a, ccontig, fcontig):
548 assert_(a.flags.c_contiguous == ccontig)
549 assert_(a.flags.f_contiguous == fcontig)
550
551 # Check if new arrays are correct:
552 check_contig(a, False, False)

Callers 1

test_contiguous_flagsFunction · 0.85

Calls 1

assert_Function · 0.90

Tested by

no test coverage detected