Skip to content

Samdp likes to fail with InversionError when theta approaches pole #2366

Description

@sdrave

The issue pops up in CI periodically, like here.

The following code snippet reproduces the issue for me on Linux with PyPI packages:

import numpy as np
from pymortests.algorithms.samdp import conv_diff_1d_fd
from pymor.algorithms.samdp import samdp
from pymor.operators.numpy import NumpyMatrixOperator

def test_samdp(n, m, k, wanted, which, rng):
    A = conv_diff_1d_fd(n, 1, 1)
    Eop = None

    B = rng.standard_normal((n, m))
    C = rng.standard_normal((k, n))

    Aop = NumpyMatrixOperator(A)
    Bva = Aop.source.from_numpy(B.T)
    Cva = Aop.source.from_numpy(C)

    return samdp(Aop, Eop, Bva, Cva, wanted, which=which)

rng = np.random.default_rng(595)
test_samdp(50, 1, 3, 15, 'NR', rng)

@lbalicki, any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions