diff --git a/.github/workflows/linux_meson.yml b/.github/workflows/linux_meson.yml index 2dca45725737..d1cc3346c3ff 100644 --- a/.github/workflows/linux_meson.yml +++ b/.github/workflows/linux_meson.yml @@ -32,7 +32,7 @@ jobs: # the usual skipping should not be enforced if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: ubuntu-22.04 strategy: matrix: @@ -135,7 +135,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 @@ -194,7 +194,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: ubuntu-22.04 # provides python3.10-dbg steps: - uses: actions/checkout@v3 @@ -224,7 +224,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: ubuntu-20.04 # 22.04 doesn't support gcc-8 steps: - uses: actions/checkout@v3 @@ -275,7 +275,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: ubuntu-latest strategy: matrix: @@ -347,7 +347,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: ubuntu-latest # I tried running directly in a container:, using the image: and options: # entries. Unfortunately at this time options: does not seem to listen to diff --git a/.github/workflows/linux_musl.yml b/.github/workflows/linux_musl.yml index 1081834ec0ee..4f81f917fcbd 100644 --- a/.github/workflows/linux_musl.yml +++ b/.github/workflows/linux_musl.yml @@ -30,7 +30,7 @@ jobs: # the usual skipping should not be enforced if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') container: # Use container used for building musllinux wheels # it has git installed, all the pythons, etc diff --git a/.github/workflows/macos_meson.yml b/.github/workflows/macos_meson.yml index 9538c397a681..ba9735cbb826 100644 --- a/.github/workflows/macos_meson.yml +++ b/.github/workflows/macos_meson.yml @@ -32,7 +32,7 @@ jobs: # the usual skipping should not be enforced if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: macos-latest strategy: matrix: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7650e838a11f..3b6481f71199 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,7 +28,7 @@ jobs: # (b) it does run with Act locally (`github` doesn't exist there) if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: windows-2019 steps: - name: Checkout @@ -67,7 +67,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: windows-2019 steps: - name: Checkout @@ -108,7 +108,7 @@ jobs: needs: get_commit_message if: > needs.get_commit_message.outputs.message == 1 - && (github.repository == 'scipy/scipy' || github.repository == '') + && (github.repository == 'ev-br/scipy' || github.repository == '') runs-on: windows-2019 steps: - name: Checkout diff --git a/scipy/sparse/linalg/_isolve/tests/test_gcrotmk.py b/scipy/sparse/linalg/_isolve/tests/test_gcrotmk.py index 62b1f9d96043..e7bbceef7b70 100644 --- a/scipy/sparse/linalg/_isolve/tests/test_gcrotmk.py +++ b/scipy/sparse/linalg/_isolve/tests/test_gcrotmk.py @@ -163,3 +163,30 @@ def test_denormals(self): if info == 0: assert_allclose(A.dot(xp), b) + + def test_complex(self): + # test_rgi.py::::TestRegularGridInterpolator::test_complex[slinear] + n = 7**4 + a = np.eye(n, dtype=float) + + vals = np.asarray([0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0]) + vals = (vals[:, None, None, None] + + vals[None, :, None, None] * 10 + + vals[None, None, :, None] * 100 + + vals[None, None, None, :] * 1000) + vals = vals - 2j*vals + vals = vals.flatten() + + import warnings + with warnings.catch_warnings(): + warnings.simplefilter("error") + res, info = gcrotmk(a, vals, atol=1e-5) + + assert info == 0 + + res_re, _ = gcrotmk(a, vals.real, atol=1e-5) + res_im, _ = gcrotmk(a, vals.imag, atol=1e-5) + + assert_allclose(res, res_re + 1j*res_im) + +