Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: do not merge #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/linux_meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
27 changes: 27 additions & 0 deletions scipy/sparse/linalg/_isolve/tests/test_gcrotmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Loading