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

Function test_partition_matrix_none

numpy/matrixlib/tests/test_interaction.py:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49
50def test_partition_matrix_none():
51 # gh-4301
52 # 2018-04-29: moved here from core.tests.test_multiarray
53 a = np.matrix([[2, 1, 0]])
54 actual = np.partition(a, 1, axis=None)
55 expected = np.matrix([[0, 1, 2]])
56 assert_equal(actual, expected)
57 assert_(type(expected) is np.matrix)
58
59
60def test_dot_scalar_and_matrix_of_objects():

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
assert_Function · 0.90
partitionMethod · 0.45

Tested by

no test coverage detected