()
| 73 | |
| 74 | |
| 75 | def test_inner_scalar_and_matrix(): |
| 76 | # 2018-04-29: moved here from core.tests.test_multiarray |
| 77 | for dt in np.typecodes['AllInteger'] + np.typecodes['AllFloat'] + '?': |
| 78 | sca = np.array(3, dtype=dt)[()] |
| 79 | arr = np.matrix([[1, 2], [3, 4]], dtype=dt) |
| 80 | desired = np.matrix([[3, 6], [9, 12]], dtype=dt) |
| 81 | assert_equal(np.inner(arr, sca), desired) |
| 82 | assert_equal(np.inner(sca, arr), desired) |
| 83 | |
| 84 | |
| 85 | def test_inner_scalar_and_matrix_of_objects(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…