def test_dot_inplace_right(): a_r_tmp = a_r.copy() b_r_tmp = b_r.copy() right_result = dot_inplace_right(a_r_tmp, b_r_tmp) assert_allclose(right_result, gt_r) assert_equal(right_result, b_r_tmp[:n_small]) assert_equal(a_r_tmp, a_r)
def test_dot_inplace_right_n_small_too_big_raises_value_error(): a = np.zeros((101, 100)) b = np.zeros((100, 10000)) dot_inplace_right(a, b)