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

Method test_intersect1d

numpy/ma/tests/test_extras.py:1623–1629  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1621 assert_equal(test.mask, control.mask)
1622
1623 def test_intersect1d(self):
1624 # Test intersect1d
1625 x = array([1, 3, 3, 3], mask=[0, 0, 0, 1])
1626 y = array([3, 1, 1, 1], mask=[0, 0, 0, 1])
1627 test = intersect1d(x, y)
1628 control = array([1, 3, -1], mask=[0, 0, 1])
1629 assert_equal(test, control)
1630
1631 def test_setxor1d(self):
1632 # Test setxor1d

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
intersect1dFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected