def test_dot_inplace_left():
    a_l_tmp = a_l.copy()
    b_l_tmp = b_l.copy()
    left_result = dot_inplace_left(a_l_tmp, b_l_tmp)
    assert_allclose(left_result, gt_l)
    assert_equal(left_result, a_l_tmp[:, :n_small])
    assert_equal(b_l_tmp, b_l)
Пример #2
0
def test_dot_inplace_left():
    a_l_tmp = a_l.copy()
    b_l_tmp = b_l.copy()
    left_result = dot_inplace_left(a_l_tmp, b_l_tmp)
    assert_allclose(left_result, gt_l)
    assert_equal(left_result, a_l_tmp[:, :n_small])
    assert_equal(b_l_tmp, b_l)
def test_dot_inplace_left_n_small_too_big_raises_value_error():
    a = np.zeros((10000, 100))
    b = np.zeros((100, 101))
    dot_inplace_left(a, b)
Пример #4
0
def test_dot_inplace_left_n_small_too_big_raises_value_error():
    a = np.zeros((10000, 100))
    b = np.zeros((100, 101))
    dot_inplace_left(a, b)