Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make cupy.linalg.solve compatible with numpy v2#8629

Merged
asi1024 merged 6 commits into
cupy:mainfrom
EarlMilktea:fix-solve
Oct 2, 2024
Merged

Make cupy.linalg.solve compatible with numpy v2#8629
asi1024 merged 6 commits into
cupy:mainfrom
EarlMilktea:fix-solve

Conversation

@EarlMilktea

@EarlMilktea EarlMilktea commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

Related to #8306 .

Description of changes

Now shape of b (right hand side) must be either (M,) or (..., M, K) rather than (..., M) or (..., M, K) (numpy v1).

See https://numpy.org/doc/stable/reference/generated/numpy.linalg.solve.html#numpy.linalg.solve for details.

@EarlMilktea EarlMilktea marked this pull request as ready for review September 27, 2024 07:11
@asi1024

asi1024 commented Sep 30, 2024

Copy link
Copy Markdown
Member

/test head

@asi1024

asi1024 commented Sep 30, 2024

Copy link
Copy Markdown
Member

/test mini

@asi1024 asi1024 self-assigned this Sep 30, 2024
@asi1024 asi1024 added cat:numpy-compat Follow the NumPy/SciPy spec changes prio:high labels Sep 30, 2024
Comment thread tests/cupy_tests/linalg_tests/test_solve.py Outdated
Comment thread tests/cupy_tests/linalg_tests/test_solve.py Outdated
@asi1024

asi1024 commented Oct 1, 2024

Copy link
Copy Markdown
Member

/test mini

@asi1024

asi1024 commented Oct 1, 2024

Copy link
Copy Markdown
Member

/test head

@asi1024 asi1024 added this to the v14.0.0a1 milestone Oct 1, 2024
@asi1024

asi1024 commented Oct 2, 2024

Copy link
Copy Markdown
Member

LGTM.

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

Labels

cat:numpy-compat Follow the NumPy/SciPy spec changes prio:high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants