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

Function test_partition_matrix_none

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

Source from the content-addressed store, hash-verified

54
55
56def test_partition_matrix_none():
57 # gh-4301
58 # 2018-04-29: moved here from core.tests.test_multiarray
59 a = np.matrix([[2, 1, 0]])
60 actual = np.partition(a, 1, axis=None)
61 expected = np.matrix([[0, 1, 2]])
62 assert_equal(actual, expected)
63 assert_(type(expected) is np.matrix)
64
65
66def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…