コード例 #1
0
ファイル: operators.py プロジェクト: nsrishankar/pymor
def test_apply2_wrong_ind(operator_with_arrays):
    op, mu, U, V = operator_with_arrays
    for ind in invalid_inds(U):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
コード例 #2
0
def test_apply2_wrong_ind(operator_with_arrays):
    op, mu, U, V = operator_with_arrays
    for ind in invalid_inds(U):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
コード例 #3
0
ファイル: operators.py プロジェクト: nsrishankar/pymor
def test_apply_inverse_wrong_ind(operator_with_arrays):
    op, mu, _, V = operator_with_arrays
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply_inverse(V, mu=mu, ind=ind)
コード例 #4
0
def test_apply_inverse_wrong_ind(operator_with_arrays):
    op, mu, _, V = operator_with_arrays
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply_inverse(V, mu=mu, ind=ind)