-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
DEP: linalg.solve_toeplitz/matmul_toeplitz: warn on n-D c
, r
#22193
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
DEP: linalg.solve_toeplitz/matmul_toeplitz: warn on n-D c
, r
#22193
Conversation
It isn't ideal to do it after RC2 of course, but I think we can probably do it. I put a tentative backport label. Ideally we signal our deprecation intentions at RC1, but I've accepted more dramatic last-minute additions than this for this cycle. Anyway, I'll see if there's strong pushback on it... but the label will at least remind me to look and see what the discussion (if one develops) was. |
c
, r
c
, r
If we are going to backport this is it worth also updating the release notes with the added deprecation in this pr? |
[skip ci]
[docs only]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, changes look good to me! I given this brings these functions inline with toeplitz
hopefully this is fairly uncontroversial
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks "ok" to me as well after reading through the diff.
I'll squash merge for backport sanity.
…inal * DEP: linalg.solve_toeplitz/matmul_toeplitz: warn on n-D `c`, `r` (#22193) * DEP: linalg.solve_toeplitz: warn on n-D c, r * MAINT: linalg.matmul_toeplitz: add admonition to documentation; test warning * DOC: update release notes [docs only] * DOC: differentiate.jacobian: correct/improve documentation about callable interface [docs only] * Update scipy/differentiate/_differentiate.py [docs only] * DOC: Update 1.15.0 relnotes * Update the SciPy `1.15.0` release notes following additional backport activity. * MAINT: PR 22233 wheel build [wheel build] * Test wheel builds in above PR before release process starts. [wheel build] --------- Co-authored-by: Matt Haberland <mhaberla@calpoly.edu>
Reference issue
Toward gh-21466
gh-21446
What does this implement/fix?
linalg.toeplitz
,linalg.solve_toeplitz
,linalg.matmul_toeplitz
document thatc
andr
with dimensionality greater than 1 will beravel
ed.gh-21446 added a warning that
toeplitz
would no longerravel
in 1.17; rather, multidimensional arrays would be treated as batches of 1-D arrays.This adds similar warnings to
linalg.solve_toeplitz
andlinalg.matmul_toeplitz
. It also removes the documentation that n-D arrays will be raveled; it is still implicit in the admonition, and we don't really want to advertise it for new uses.Additional information
@tylerjereddy any chance we can get this into 1.15 from the perspective that
toeplitz
,solve_toeplitz
,matmul_toeplitz
are a tuple and should have been treated together? This also fixes typos in the existing warnings.If not, I propose that we still document that this behavior will be changed in 1.17. Our public deprecation policy is
and in the Core Developer Guide, it says the change can be implemented 6 months after the release that includes the warning (and historically, the winter release tends to be >6 months after the summer release). I know we usually give two releases, but it would be nice to finish these up at the same time, and I expect these will be very low impact.