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

Method test_ticket_1434

numpy/_core/tests/test_regression.py:1538–1549  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1536 err_msg=name)
1537
1538 def test_ticket_1434(self):
1539 # Check that the out= argument in var and std has an effect
1540 data = np.array(((1, 2, 3), (4, 5, 6), (7, 8, 9)))
1541 out = np.zeros((3,))
1542
1543 ret = data.var(axis=1, out=out)
1544 assert_(ret is out)
1545 assert_array_equal(ret, data.var(axis=1))
1546
1547 ret = data.std(axis=1, out=out)
1548 assert_(ret is out)
1549 assert_array_equal(ret, data.std(axis=1))
1550
1551 def test_complex_nan_maximum(self):
1552 cnan = complex(0, np.nan)

Callers

nothing calls this directly

Calls 4

assert_Function · 0.90
assert_array_equalFunction · 0.90
varMethod · 0.45
stdMethod · 0.45

Tested by

no test coverage detected