chore(deps): update dependency scipy to v1.18.0 - #14
Open
eagleoflqj wants to merge 1 commit into
Open
Conversation
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
October 2, 2023 18:52
59e08d9 to
f50f5ca
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
November 20, 2023 18:52
f50f5ca to
cb7398f
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
January 22, 2024 18:52
cb7398f to
d6c927e
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
April 8, 2024 18:52
d6c927e to
1e31a4b
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
May 27, 2024 18:52
1e31a4b to
1f735ca
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
July 1, 2024 18:52
1f735ca to
ceed4e6
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
August 26, 2024 18:52
ceed4e6 to
c7ec1f7
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
January 6, 2025 18:52
c7ec1f7 to
d6ac66b
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
January 13, 2025 18:52
d6ac66b to
2207204
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
February 17, 2025 18:52
2207204 to
0446169
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
May 12, 2025 18:56
0446169 to
01003a9
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
June 23, 2025 18:58
01003a9 to
6ea1b78
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
July 28, 2025 19:01
6ea1b78 to
c03c64a
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
September 15, 2025 18:54
c03c64a to
590cce0
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
November 3, 2025 18:54
590cce0 to
2805f36
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
January 12, 2026 19:02
2805f36 to
5c5e824
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
February 23, 2026 19:45
5c5e824 to
73ef230
Compare
eagleoflqj
force-pushed
the
renovate/scipy-1.x
branch
from
June 22, 2026 21:26
73ef230 to
7547a26
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.9.3→==1.18.0Release Notes
scipy/scipy (scipy)
v1.18.0: SciPy 1.18.0Compare Source
SciPy 1.18.0 Release Notes
SciPy
1.18.0is the culmination of6months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.18.x branch, and on adding new features on the main branch.
This release requires Python
3.12-3.14and NumPy2.0.0or greater.Highlights of this release
LP64/ILP64 support, and machinery is provided for downstream
cython_lapackconsumers to gracefully handle LP64/ILP64 backend builds. ILP64 support
has been substantially improved across the SciPy library.
Fortran-free build option is now available to developers for testing
purposes. Developer feedback is welcome on Fortran-free builds.
scipy.signal.whittaker_hendersonnow provides access to Whittaker-Hendersonsmoothing of a discrete signal.
scipy.statsfunctions now support lazy arrays and JAXJIT. Array API support has been improved substantially in SciPy, with at least
21 functions gaining new support in this release. 16
scipy.statsfunctionshave also gained support for MArray input.
New features
scipy.fftimprovementspocketfftto itssuccessor package
ducc0.fft, which features several incrementalimprovements. The most significant of those from SciPy's perspective is
probably that storage requirements for internally cached plans have been
significantly reduced for most long 1D transforms. Plans that require more
storage than 1MB will no longer be cached; this mainly affects huge 1D
transforms of prime and near-prime sizes.
scipy.interpolateimprovementssimplex_toleranceargument to the_call__methods ofLinearNDInterpolatorandCloughTocher2dInterpolator. This canhelp users avoid holes in certain interpolation problems.
scipy.differentiateimprovementsscipy.differentiate.derivativenow supports passingkwargsto thefunction whose derivative is desired.
scipy.linalgimprovementsILP64-only, and ILP64 for everyting except
cython_blas/cython_lapack/linalg.blas/linalg.lapack(support for Accelerate and MKL).cython_lapackusers to gracefullyhandle LP64/ILP64 backend builds. Worked examples, including build system
details, have been included in this release.
overwrite_bkeyword argument was added toeigvals, for consistencywith other similar
linalgfunctions.linalg.choleskynow leverages symmetry properties for performanceimprovements, especially for real matrices. The batching loop of
choleskyhas now also been moved to a C implementation.
scipy.linalg.luandscipy.linalg.dethave been rewritten in C++ withbatching support in the compiled code.
scipy.linalg.expmandscipy.linalg.sqrtm.scipy.linalg.qr,scipy.linalg.eig,scipy.linalg.lstsq, andscipy.linalg.svdhave been moved to C,providing a substantial speedup for batched input.
scipy.linalg.expmhas been improved.scipy.linalg.solvehas improved for batched inputs.scipy.linalg.bandwidthnow supports batching for greater than or equal to2 dimensional input.
scipy.optimizeimprovementstrust_constrmethod forminimizewas adjusted so that if thexarray would result in infeasible constraints, and those constraints were
marked as
keep_feasible, then the objective function is not called withthat
xarray.COBYQAmethod forminimizenow supports being calledconcurrently by multiple threads. Previously, multiple threads calling this
function would only run one at a time.
scipy.optimize.nnls, andminimizemethodsSLSQPandL-BFGS-Bnow have support for ILP64 LAPACK, when available.
scipy.optimize.elementwisenow support passingkwargsto the callable function.
scipy.signalimprovements~scipy.signal.whittaker_hendersonimplements Whittaker-Henderson smoothingof a discrete signal. It offers different penalties to control the smoothness as well
as automatic selection of the penalty strength via optimization of the restricted
maximum likelihood (REML) criterion.
It is a valuable alternative for the Savitzky-Golay filter
~scipy.signal.savgol_filter.In econometrics, Whittaker-Henderson graduation of penalty order 2 is also known as
Hodrick-Prescott filter.
lfilter_ziwas refactored for improved numerical stability andefficiency. It now raises a
ValueErrorif parameterahas leadingzeros, i.e.,
a[0] == 0, sincelfilterandfiltfiltdo not supportthat as well. Furthermore, a
ValueErrorinstead of aLinAlgErrorisraised if the filter is unstable due to having a pole at
z = 1.scipy.sparseimprovementsscipy.sparse.csgraphthe computation of strongly connected componentsfor directed graphs is now 2x faster with better cache locality, using
algorithmic improvements described in the recent survey by Tarjan and Zwick.
matrix_transpose/.mT.scipy.sparse.linalg.LinearOperator, andLinearOperatornow hasa new
rdotmethod.scipy.sparse.linalg.minresnow supports complex hermitian matrices.scipy.integrateimprovementsscipy.integrate.tanhsinhandscipy.integrate.nsumnow support passingkwargsto the function to be integrated.scipy.spatialimprovementsscipy.spatial.SphericalVoronoi.scipy.spatial.distance.minkowski,scipy.spatial.distance.euclidean, andscipy.spatial.distance.sqeuclidean.KDTree.sparse_distance_matrix.RotationandRigidTransformdirectly,by automatically promoting
Rotationwhen the two are composed viaa multiplication operator.
scipy.specialimprovementsscipy.special.bdtrik,scipy.special.bdtrin,scipy.special.nbdtrik,scipy.special.nbdtrin.scipy.special.eval_jacobihas been improvedfor several parameter combinations.
scipy.special.j0andscipy.special.y0have improved accuracy for large arguments.
scipy.statsimprovementsscipy.stats.pmeanwith tiny, nonzerophas beenimproved.
scipy.stats.halfgennormhas been improved.zstatistichas been added to the result object ofscipy.stats.mannwhitneyu.statsfunctions now support lazy arrays and JAXJIT (see Python Array API support section below).
nan_policykeyword argument has been added to:scipy.stats.obrientransform,scipy.stats.boxcox,scipy.stats.boxcox_normmax,scipy.stats.yeojohnson,scipy.stats.yeojohnson_normmax,scipy.stats.sigmaclip, andscipy.stats.expectile.scipy.stats.ContinuousDistribution.lmomenthas been added for computingpopulation L-moments.
scipy.stats.estimated_cdfhas been added. It reproducesmuch of the functionality of
stats.mstats.plotting_positions,stats.percentileofscore,stats.ecdf.cdf, andstats.cumfreq, butis also vectorized.
scipy.stats.ansariaccepts a newmethodargument.scipy.stats.bws_test,scipy.stats.expectile, andscipy.stats.quantile_testnow accept anaxisargument.scipy.stats.expectileandscipy.stats.quantile_testaccept a newkeepdimsargument.scipy.stats.binomtestnow supports batching ofk,n, andp.Python Array API Standard Support
interpolate.PPoly,interpolate.BPoly, andinterpolate.BSpline.scipy.stats.rankdata.methodandtrimusagein
scipy.stats.ttest_ind.scipy.stats.cramervonmises,scipy.stats.ks_1samp,scipy.stats.ks_2samp,scipy.stats.mode,scipy.stats.rankdata,scipy.stats.kruskal,scipy.stats.brunnermunzel,scipy.stats.spearmanrho,scipy.stats.friedmanchisquare,scipy.stats.cramervonmises_2samp,scipy.stats.mannwhitneyu,scipy.stats.wilcoxon,scipy.stats.fligner,scipy.stats.linregress,scipy.stats.alexandergovern, andscipy.stats.levene.scipy.stats.quantile_test,scipy.stats.kendalltau(via NumPy conversion),scipy.stats.kstest,scipy.sparse.linalg.LinearOperator,scipy.stats.cumfreq,scipy.stats.relfreq,scipy.stats.ks_2samp,scipy.stats.theilslopes,scipy.stats.siegelslopes,scipy.stats.obrientransform(including marray),scipy.stats.binomtest,scipy.integrate.fixed_quad,scipy.signal.square,scipy.stats.expectile,scipy.stats.shapiro,scipy.stats.pointbiserialr,scipy.stats.bws_test,scipy.stats.estimated_cdf(new function),scipy.stats.linregress,scipy.integrate.simpson, andscipy.signal.sawtooth.torchsupport forscipy.signal.fftconvolvenow correctlyhandles the
float32dtype.scipy.stats.binomtest(except for
method='two-sided'),scipy.stats.mannwhitneyu(except for
method='auto'),scipy.stats.lmoment,scipy.stats.moment,scipy.stats.ansari(related to newmethodargument),scipy.stats.yeojohnson_llf,scipy.stats.epps_singleton_2samp,scipy.stats.wilcoxon(except formethod='exact'andmethod='auto'),scipy.stats.rankdata(via delegation),scipy.signal.oaconvolve,scipy.signal.hilbert, andscipy.signal.hilbert2.Deprecated features and future changes
lworkparameter toscipy.linalg.qrhas been deprecated. Thefunctionality was rarely used; the function computes the optimal size of the
work arrays automatically, therefore users should simply remove their uses
of the
lworkparameter.kron,kronsumandblock_diagchoose return type
sparrayorspmatrixdepending on the type of thesparse input arrays. When no inputs are sparse, the output is chosen to be
spmatrix. That has been deprecated. The return type when no inputs aresparse will be changing to
sparray. You can control the output type byensuring that at least one input array is sparse. If any are
sparray,the output will be
sparray. If all sparse inputs arespmatrix,the output will be
spmatrix.FutureWarningis now issued for calling{r}matvecon column vectorswith
LinearOperator. Identical behavior can be achieved (and extended tobatch dimensions) via
{r}matmat.scipy.linalgfunctions are now stricter--using non-LAPACK dtypes isdeprecated. When the deprecations expire, this will effectively limit the
dtypes allowed in linear algebra functions to: integers (upcast to float),
and single/double precision float/complex dtypes.
scipy.spatial.minkowsi_distance,scipy.spatial.minkowsi_distance_p,and
scipy.spatial.distance_matrixhave been deprecated in favor ofother superior functions.
scipy.spatial.tsearchhas been deprecated because it duplicates functionalitymore conveniently provided within the
Delaunayclass proper.not practically useful:
scipy.interpolate.pade,scipy.interpolate.lagrange,and
scipy.interpolate.approximate_taylor_polynomial.spmatrix=Truefor thescipy.ioreadersmmio,FFM,hb,and
matlab/_miois now deprecated, including when set as the defaultvalue.
scipy.cluster.vq.py_vqhas been deprecated.Backwards incompatible changes
scipy.stats.rankdatais now always of a floating pointdtype -- the result dtype of the input and a Python
float.residualsreturned byscipy.linalg.lstsqhas beenchanged. For
lapack_driver == "gelsy"or the system being eitherunderdetermined or square, empty residuals are still returned. For
lapack_driver == "gesld"/"gelss"in combination with an overdeterminedsystem a non-empty residual is always returned. However, in the case where a
slice is not full column rank, the corresponding residual is set to
NaN.scipy.stats.contingency.crosstabwhen kwargsparse=Trueis now a sparse array holding the counts instead of a sparsematrix. This allows it to be nD, so can accept more than 2 sequences as
inputs, but it is a different class. Most operations work the same for
sparse arrays and matrixes with notable differences for matrix:
*meansmatmul and always-2D. For more info see
migration_to_sparray.scipy.stats.obrientransformnow returns a tuple of arrays instead ofa single
ndarray.scipy.stats.multinomialnow returns NaNs when the category probability(
p) rows/arrays do not sum to unity. This is an expiration of the deprecatedbehavior of adjusting the final element in the
parray to compensate.Note that
multinomial.rvswill now raise an error in such cases, since ithas an integral return type.
iprintanddispparameters ofscipy.optimize.fmin_l_bfgs_bhave been removed, following the expiry of their deprecation.
scipy.linalg.{sqrtm, logm, signm},disp(andsqrtmblocksize) parameters were removed (expired deprecations).atolargument ofscipy.optimize.nnlshas beenremoved.
scipy.linalg.bandwidthhas changed from(int, int)to(np.int64, np.int64).scipy.linalg.cho_factorchanged fromboolto
NDArray[np.bool].scipy.interpolate.splintchanged from a 1Dfloat64array toNonewhenfull_output=True.kandnattributes of theBinomTestResultobject returned by
scipy.stats.binomtesthave changed frominttonp.float64.Other changes
Boost.Mathwas updated from1.89.0to1.91.0.SciPy from source inside Pixi workspaces.
_without-fortran,which allows building SciPy from source in the absence of a Fortran compiler.
This is an early prototype of the planned capability of a Fortran-free
SciPy.
scipy.interpolate._regridfunction may be of experimentalinterest. It provides an interface for 2-D smoothing B-spline fitting via
separable 1-D FITPACK kernels. It is under consideraton for public exposure
in some form in the future.
3.13t(3.13free threading) wheels are not provided on PyPI for thisand subsequent releases because
3.13twas deprecated bymanylinuxanddropped by
cibuildwheelin favor of3.14t.scipy.linalg.eigwere always Fortran-ordered, and inSciPy
1.18.0they may or may not be. If the ordering is important (for example,when interfacing with compiled code which expects specific array strides), users
should ensure the desired ordering manually.
Authors
A total of 103 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
Note that the source and binary assets associated with this release were published to PyPI using trusted publishing, and so the trusted assets and their hashes are made available more securely at https://pypi.org/project/scipy/1.18.0/ rather than providing them here in a less secure manner.
v1.17.1: SciPy 1.17.1Compare Source
SciPy 1.17.1 Release Notes
SciPy
1.17.1is a bug-fix release with no new features compared to1.17.0.Authors
A total of 13 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
Complete issue list, PR list, and release asset hashes are available in the associated
README.txt.v1.17.0: SciPy 1.17.0Compare Source
SciPy 1.17.0 Release Notes
SciPy
1.17.0is the culmination of 6 months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.17.xbranch, and on adding new features on the main branch.This release requires Python
3.11-3.14and NumPy1.26.4or greater.Highlights of this release
array input and additional support for the array API standard. An overall
summary of the latter is now available in a set of tables.
scipy.sparse,coo_arraynow supports indexing. This includes integers,slices, arrays,
np.newaxis,Ellipsis, in 1D, 2D and the relativelynew nD. In
scipy.sparse.linalg, ARPACK and PROPACK rewrites from Fortran77to C now empower the use of external pseudorandom number generators, e.g.
from numpy.
scipy.spatial,transform.Rotationandtransform.RigidTransformhave been extended to support N-D arrays.
geometric_slerpnow has supportfor extrapolation.
scipy.statshas gained the matrix t and logistic distributions and manyperformance and accuracy improvements.
been added, including for MKL and Apple Accelerate. Please report any issues with
ILP64 you encounter.
New features
scipy.integrateimprovementsdopri5,dopri853,LSODA,vode, andzvodehave been ported from Fortran77 to C.scipy.integrate.quadnow has a fast path for returning 0 when the integrationinterval is empty.
BDF,DOP853,RK23,RK45,OdeSolver,DenseOutput,ode, andcomplex_odeclasses now support subscription, making themgeneric types, for compatibility with
scipy-stubs.scipy.clusterimprovementsscipy.cluster.hierarchy.is_isomorphichas improved performance and arrayAPI support.
scipy.interpolateimprovementsbc_typeargument has been added toscipy.interpolate.make_splrep,scipy.interpolate.make_splprep, andscipy.interpolate.generate_knotstocontrol the boundary conditions for spline fitting. Allowed values are
"not-a-knot"(default) and"periodic".derivativemethod has been added to thescipy.interpolate.NdBSplineclass, to construct a new spline representing apartial derivative of the given spline. This method is similar to the
BSpline.derivativemethod of 1-D spline objects. In addition, theNdBSplinemutable instance attribute.cwas changed into a read-only@property."cubic"and"quintic"modes ofscipy.interpolate.RegularGridInterpolatorhas been improved. Furthermore,the (mutable) instance attributes
.gridand.valueswere changed into(read-only) properties.
scipy.interpolate.AAAhas been improved and it hasgained a new
axisparameter.scipy.interpolate.FloaterHormannInterpolatoradded support formultidimensional, batched inputs and gained a new
axisparameter toselect the interpolation axis.
RBFInterpolatorhas gained an array API standard compatible backend, with animproved support for GPU arrays.
AAA,*Interpolator,*Poly, and*Splineclasses nowsupport subscription, making them generic types, for compatibility with
scipy-stubs.scipy.linalgimprovementsscipy.linalg.invroutine has been improved:appropriate low-level matrix inversion routine. A new
assume_akeywordallows to bypass the structure detection if the structure is known. For
batched inputs, the detection is run for each 2D slice, unless an explicit
value for
assume_ais provided (in which case, the structure isassumed to be the same for all 2-D slices of the batch);
lower={True,False}keyword argument has been added to helpselect the upper or lower triangle of the input matrix for symmetric
inputs; refer to the docstring of
scipy.linalg.invfor details;LinAlgWarningif it detects an ill-conditionedinput;
scipy.linalg.fiedlerhas gained native support for batched inputs.performance has improved for
scipy.linalg.solvewith batched inputsfor certain matrix structures.
scipy.optimizeimprovementsoptimize.minimize(method="trust-exact")now accepts asolver-specific
"subproblem_maxiter"option. This option can be used toassure that the algorithm converges for functions with an ill-conditioned
Hessian.
optimize.minimize(method="slsqp")canopt into the new callback interface by accepting a single keyword argument
intermediate_result.BroydenFirst,*Jacobian, andBoundsclasses now supportsubscription, making them generic types, for compatibility with
scipy-stubs.scipy.signalimprovementsscipy.signal.abcd_normalizegained more informative error messages and thedocumentation was improved.
scipy.signal.get_windownow accepts the suffixes'_periodic'and'_symmetric'to distinguish between periodic and symmetric windows(overriding the
fftbinparameter). This benefits the functionscoherence,csd,periodogram,welch,spectrogram,stft,istft,resample,resample_poly,firwin,firwin2,firwin_2d,check_COLAandcheck_NOLA, which utilizeget_windowbut do not expose thefftbinparameter.scipy.signal.hilbert2gained the new keywordaxesfor specifying theaxes along which the two-dimensional analytic signal should be calculated.
Furthermore, the documentation of
scipy.signal.hilbertandscipy.signal.hilbert2was significantly improved.ShortTimeFFTandLinearTimeInvariantclasses now supportsubscription, making them generic types, for compatibility with
scipy-stubs.scipy.sparseimprovementscoo_arraynow supports indexing. This includes slices, arrays,np.newaxis,Ellipsis, in 1D, 2D and the new nD. So COO format nowhas full support for nD and COO now allows indexing without converting
formats.
expand_dims,swapaxes,permute_dims, and nD support for thekronfunction.possible to use external random generators including NumPy PRNGs for
reproducible runs. Previously this was not the case due to internal seeding
behavior of the original ARPACK code.
enhancements and other improvements.
scipy.sparse.dok_arraynow supports anupdatemethod which can beused to update the sparse array using a dict,
dict.items()-like iterable,or another
dok_arraymatrix. It performs additional validation that keysare valid index tuples.
scipy.sparse.dia_array.tocsris approximately three times faster andsome unnecessary copy operations have been removed from sparse format
interconversions more broadly.
scipy.sparse.linalg.funm_multiply_krylov, a restarted Krylov methodfor evaluating
y = f(tA) b.sparse.linalg, theLinearOperator,LaplacianNd, andSuperLUclasses now support subscription, making them generic types, for
compatibility with
scipy-stubs.sparse.linalgtheeigsandeigshfunctions now accept a newrngparameter.scipy.spatialimprovementsThe
spatial.transformmodule has gained an array API standard compatiblebackend.
transform.Rotationandtransform.RigidTransformhave been extendedfrom 0D single values and 1D arrays to N-D arrays, with standard indexing and
broadcasting rules. Both now have the following additions:
shapeproperty.shapeargument to theiridentity()constructors, which should bepreferred over the existing
numargument. This has also been added as anargument for
Rotation.random()(RigidTransformdoes not currentlyhave a
randomconstructor).axisargument to theirmean()functions.The resulting shapes for
transform.Rotation.from_euler/from_davenporthave changed to make them consistent with broadcastingrules. Angle inputs to Euler angles must now strictly match the number of
provided axes in the last dimension. The resulting
Rotationhas the shapenp.atleast_1d(angles).shape[:-1]. Angle inputs to Davenport angles mustalso match the number of axes in the last dimension. The resulting
Rotationhas the shape
np.broadcast_shapes(np.atleast_2d(axes).shape[:-2], np.atleast_1d(angles).shape[:-1]).Rotation.from_matrixhas gained anassume_validargument that allows forperformance improvements when users can guarantee valid matrix inputs.
from_matrixis now also faster in cases where a known orthogonal matrixis used.
The
scipy.spatial.geometric_slerpfunction can now extrapolate. When given avalue outside the range [0, 1],
geometric_slerp()will continue withthe same rotation outside this range. For example, if spherically
interpolating with
startbeing a point on the equator, andendbeing a point at the north pole, then a value of
t=-1would give you apoint at the south pole.
Rotation.as_eulerandRotation.as_davenportmethods have gained asuppress_warningsparameter to enable suppression of gimbal lock warnings.Rotation.__init__has gained a new optionalscalar_firstparameter andthere is a new
Rotation.__setitem__method.scipy.specialimprovementsimproved parameter ranges and reduced error rates:
btdtria,btdtrib,chdtriv,chndtr,chndtrix,chndtridf,chndtrinc,fdtr,fdtrc,fdtri,gdtria,gdtrix,pdtrik,stdtrandstdtrit.betainc,betaincc,betaincinvandbetainccinvare improved for extreme parameter ranges.scipy.statsimprovementsscipy.stats.matrix_thas been added to represent the matrix t distribution.It supports methods
pdf(andlogpdf) for computing the probabilitydensity function and
rvsfor generating random variates.scipy.stats.Logisticwas added for modeling random variables that follow alogistic distribution.
scipy.stats.quantilenow accepts aweightsargument to specifyfrequency weights.
scipy.stats.quantileis now faster on large arrays as it no longer usesstable sort internally.
scipy.stats.quantilesupports three new values of themethodargument,'round_inward','round_outward', and'round_neareast', for use inthe context of trimming and winsorizing data.
scipy.stats.truncparetonow accepts negative values for the exponent shapeparameter, enabling use of
truncparetoas a more general power lawdistribution.
scipy.stats.logsernow provides a distribution-specific implementation ofthe
sfmethod, improving speed and accuracy.scipy.stats.ansari,scipy.stats.cramervonmises,scipy.stats.cramervonmises_2samp,scipy.stats.epps_singleton_2samp,scipy.stats.fligner,scipy.stats.friedmanchisquare,scipy.stats.kruskal,scipy.stats.ks_1samp,scipy.stats.levene, andscipy.stats.mood.Typically, this improves performance with multidimensional (batch) input.
scipy.stats.andersonhave been updated.methodparameter ofscipy.stats.andersonallows the userto compute p-values by interpolating between tabulated values or using Monte
Carlo simulation. The
methodparameter must be passed explicitlyto add a
pvalueattribute to the result object and avoid a warningabout the upcoming removal of
critical_value,significance_level,and
fit_resultattributes.variantparameter ofscipy.stats.anderson_ksampallows the userto select between three different variants of the statistic, superseding the
midrankparameter which allowed toggling between two. The new'continuous'variant is equivalent to
'discrete'when there are no ties in the sample, butthe calculation is faster. The
variantparameter must be passed explicitly toavoid a warning about the deprecation of the
midrankattribute and the upcomingremoval of
critical_valuesfrom the result object.scipy.stats.zipfianmethods has beenimproved.
scipy.stats.Binomialmethodslogcdfandlogccdfhave been improved in the tails.scipy.stats.trapezoid.fithas been improved.cdf,sf,isf, andppfmethodsof
scipy.stats.binomandscipy.stats.nbinomhas been improved.Covariance,Uniform,Normal,Binomial,Mixture,rv_frozen, andmulti_rv_frozenclasses now support subscription,making them generic types, for compatibility with
scipy-stubs.multivariate_tandmultivariate_normaldistributions have gaineda new
marginalmethod.yeojohnson_llfgained new parametersaxis,nan_policy,and
keepdims, and now returns a numpy scalar where it would previouslyreturn a 0D array.
spearmanrhofunction is an array API compatible substitute forspearmanr.median_abs_deviationfunction has gained akeepdimsparameter.trim_meanfunction has gained newnan_policyandkeepdimsparameters.
Array API Standard Support
now available.
providing improved performance in dispatching to different backends.
scipy.cluster.hierarchy.is_isomorphichas gained support.scipy.interpolate.make_lsq_spline,scipy.interpolate.make_smoothing_spline,scipy.interpolate.make_splrep,scipy.interpolate.make_splprep,scipy.interpolate.generate_knots, andscipy.interpolate.make_interp_splinehave gained support.
scipy.signal.bilinear,scipy.signal.iircomb,scipy.signal.iirdesign,scipy.signal.iirfilter,scipy.signal.iirpeak,scipy.signal.iirnotch,scipy.signal.gammatone, andscipy.signal.group_delayhave gained support.scipy.signal.butter,scipy.signal.buttap,scipy.signal.buttord,scipy.signal.cheby1,scipy.signal.cheb1ap,scipy.signal.cheb1ord,scipy.signal.cheby2,scipy.signal.cheb2ap,scipy.signal.cheb2ord,scipy.signal.bessel,scipy.signal.besselap,scipy.signal.ellip,scipy.signal.ellipap, andscipy.signal.ellipordhave gained support.scipy.signal.savgol_filter,scipy.signal.savgol_coeffs, andscipy.signal.abcd_normalizehave gained support.spatial.transformhas gained support.scipy.integrate.qmc_quad,scipy.integrate.cumulative_simpson,scipy.integrate.cumulative_trapezoid, andscipy.integrate.rombhavegained support.
scipy.linalg.block_diag,scipy.linalg.fiedler, andscipy.linalg.orthogonal_procrusteshave gained support.scipy.interpolate.BSpline,scipy.interpolate.NdBSpline,scipy.interpolate.RegularGridInterpolator, andscipy.interpolate.RBFInterpolatorgained support.scipy.stats.alexandergovern,scipy.stats.bootstrap,scipy.stats.brunnermunzel,scipy.stats.chatterjeexi,scipy.stats.cramervonmises,scipy.stats.cramervonmises_2samp,scipy.stats.epps_singleton_2samp,scipy.stats.false_discovery_control,scipy.stats.fligner,scipy.stats.friedmanchisquare,scipy.stats.iqr,scipy.stats.kruskal,scipy.stats.ks_1samp,scipy.stats.levene,scipy.stats.lmoment,scipy.stats.mannwhitneyu,scipy.stats.median_abs_deviation,scipy.stats.mode,scipy.stats.mood,scipy.stats.ansari,scipy.stats.power,scipy.stats.permutation_test,scipy.stats.sigmaclip,scipy.stats.wilcoxon, andscipy.stats.yeojohnson_llf.scipy.stats.pearsonrhas gained support for JAX and Dask backends.scipy.stats.variationhas gained support for the Dask backend.marraysupport was added forstats.gtstd,stats.directional_stats,stats.bartlett,stats.variation,stats.pearsonr, andstats.entropy.Deprecated features and future changes
scipy.odrmodule is deprecated in v1.17.0 and will be completelyremoved in v1.19.0. Users are suggested to use the
odrpackpackage instead.scipy.sparse.diagsandscipy.sparse.diags_arraywill change in v1.19.0.scipy.linalg.hankelwill no longer ravel multidimensionalinputs and instead will treat them as a batch.
precenterargument ofscipy.signal.lombscargleis deprecated andwill be removed in v1.19.0. Furthermore, some arguments will become keyword
only.
scipy.stats.anderson, the tuple-unpacking behavior of the return objectand attributes
critical_values,significance_level, andfit_resultare deprecated. Use the newmethodparameter to avoid thedeprecation warning. Beginning in SciPy 1.19.0, these features will
no longer be available, and the object returned will have attributes
statisticandpvalue.scipy.stats.anderson_ksamp, themidrankparameter is deprecatedand the new
variantparameter should be preferred. This also means thatthe presence of the
critical_valuesreturn array is deprecated.Expired deprecations
scipy.stats.find_repeatshas been removed. Please usenumpy.unique/numpy.unique_countsinstead.scipy.linalgfunctions for Toeplitz matrices no longer ravel n-d inputarguments; instead, multidimensional input is treated as a batch.
seedandrandfunctions fromscipy.linalg.interpolativehavebeen removed. Use the
rngargument instead.scipy.spatial.distance.cosineandscipy.spatial.distance.correlationnow raise an error.scipy.signal.correlate,scipy.signal.convolve,scipy.signal.lfilter,and
scipy.signal.sosfilt.kulczynski1andsokalmichenerhave been removed fromscipy.spatial.distance.kronhas been removed fromscipy.linalg. Please usenumpy.kron.scipy.interpolate.interpnd.random_stateandpermutationarguments ofscipy.stats.ttest_indhave been removed.sph_harm,clpmn,lpn, andlpmnhave been removed fromscipy.special.Backwards incompatible changes
transform.Rotation.from_euler/from_davenporthave changed to make them consistent with broadcastingrules. Angle inputs to Euler angles must now strictly match the number of
provided axes in the last dimension. The resulting
Rotationhas the shapenp.atleast_1d(angles).shape[:-1]. Angle inputs to Davenport angles mustalso match the number of axes in the last dimension. The resulting
Rotationhas the shape
np.broadcast_shapes(np.atleast_2d(axes).shape[:-2], np.atleast_1d(angles).shape[:-1]).Other changes
The version of the Boost Math library leveraged by SciPy has been
increased from
1.88.0to1.89.0.On POSIX operating systems, SciPy will now use the
'forkserver'multiprocessing context on Python 3.13 and older for
workers=<an-int>calls if the user hasn't configured a default method themselves. This follows
the default behavior on Python 3.14.
Initial support for 64-bit integer (ILP64) BLAS and LAPACK libraries has been
added. To enable it, build SciPy with
-Duse-ilp64=truemeson option, and makesure to have a LAPACK library which exposes both LP64 and ILP64 symbols.
Currently supported LAPACK libraries are MKL and Apple Accelerate. Note that:
LP64 interface;
get_{blas,lapack}_funcsfunctions:scipy.linalg.lapack.get_lapack_funcs(..., use_ilp64="preferred")selectsthe ILP64 variant if available and LP64 variant otherwise;
cython_blasandcython_lapackmodules always contain the LP64routines for ABI compatibility.
Please report any issues with ILP64 you encounter.
Authors
A total of 117 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
Complete issue list, PR list, and release asset hashes are available in the associated
README.txt.v1.16.3: SciPy 1.16.3Compare Source
SciPy 1.16.3 Release Notes
SciPy
1.16.3is a bug-fix release with no new features compared to1.16.2.Authors
A total of 8 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
The full issue and pull request lists, and the release asset hashes are available
in the associated
README.txtfile.v1.16.2: SciPy 1.16.2Compare Source
SciPy 1.16.2 Release Notes
SciPy
1.16.2is a bug-fix release with no new featurescompared to
1.16.1. This is the first stable release ofSciPy to provide Windows on ARM wheels on PyPI.
Authors
A total of 12 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
The full issue and pull request lists, and the release asset hashes are available
in the associated
README.txtfile.v1.16.1: SciPy 1.16.1Compare Source
SciPy 1.16.1 Release Notes
SciPy
1.16.1is a bug-fix release that adds support for Python3.14.0rc1,including PyPI wheels.
Authors
A total of 12 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
The full issue and pull request lists, and the release asset hashes are available
in the associated
README.txtfile.v1.16.0: SciPy 1.16.0Compare Source
SciPy 1.16.0 Release Notes
SciPy
1.16.0is the culmination of 6 months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.16.x branch, and on adding new features on the main branch.
This release requires Python
3.11-3.13and NumPy1.25.2or greater.Highlights of this release
new support in
scipy.signal, and additional support inscipy.statsandscipy.special. Improved support for JAX and Dask backends has been added,with notable support in
scipy.cluster.hierarchy, many functions inscipy.special, and many of the trimmed statistics functions.scipy.optimizenow uses the new Python implementation from thePRIMApackage for COBYLA. The PRIMA implementation fixes many bugsin the old Fortran 77 implementation with a better performance on average.
scipy.sparse.coo_arraynow supports n-D arrays with reshaping, arithmetic andreduction operations like sum/mean/min/max. No n-D indexing or
scipy.sparse.random_arraysupport yet.scipy.linalgnamespace that accept arrayarguments now support N-dimensional arrays to be processed as a batch.
scipy.signalfunctions,scipy.signal.firwin_2dandscipy.signal.closest_STFT_dual_window, for creation of a 2-D FIR filter andscipy.signal.ShortTimeFFTdual window calculation, respectively.scipy.spatial.transform.RigidTransform, provides functionalityto convert between different representations of rigid transforms in 3-D
space.
scipy.ndimage.vectorized_filterfor generic filters thattake advantage of a vectorized Python callable was added.
New features
scipy.ioimprovementsscipy.io.savematnow provides informative warnings for invalid field names.scipy.io.mmreadnow provides a clearer error message when provided witha source file path that does not exist.
scipy.io.wavfile.readcan now read non-seekable files.scipy.integrateimprovementsscipy.integrate.tanhsinhwas improved.scipy.interpolateimprovementsscipy.interpolate.make_smoothing_spline.scipy.linalgimprovementsscipy.linalgnamespace that accept arrayarguments now support N-dimensional arrays to be processed as a batch.
See
linalg_batchfor details.scipy.linalg.sqrtmis rewritten in C and its performance is improved. Italso tries harder to return real-valued results for real-valued inputs if
possible. See the function docstring for more details. In this version the
input argument
dispand the optional output argumenterrestaredeprecated and will be removed four versions later. Similarly, after
changing the underlying algorithm to recursion, the
blocksizekeywordargument has no effect and will be removed two versions later.
?stevd,?langb,?sytri,?hetriand?gbconwere added toscipy.linalg.lapack.scipy.linalg.eigh_tridiagonalwas improved.scipy.linalg.solvecan now estimate the reciprocal condition number andthe matrix norm calculation is more efficient.
scipy.ndimageimprovementsscipy.ndimage.vectorized_filterfor generic filters thattake advantage of a vectorized Python callable was added.
scipy.ndimage.rotatehas improved performance, especially on ARM platforms.scipy.optimizeimprovementsPRIMApackage.The PRIMA implementation fixes many bugs
in the old Fortran 77 implementation. In addition, it results in fewer function evaluations on average
but it depends on the problem and for some
problems it can result in more function evaluations or a less optimal
result. For those cases the user can try modifying the initial and final
trust region radii given by
rhobegandtolrespectively. A largerrhobegcan help the algorithm take bigger steps initially, while asmaller
tolcan help it continue and find a better solution.For more information, see the PRIMA documentation.
scipy.optimize.minimizemethods, and thescipy.optimize.least_squaresfunction, have been given aworkerskeyword. This allows parallelization of some calculations via a map-like
callable, such as
multiprocessing.Pool. These parallelizationopportunities typically occur during numerical differentiation. This can
greatly speed up minimization when the objective function is expensive to
calculate.
lmmethod ofscipy.optimize.least_squarescan now accept3-pointandcsfor thejackeyword.constraint multipliers are exposed to the user through the
multiplierkeyword of the returned
scipy.optimize.OptimizeResultobject.regression introduced in 1.15.x
scipy.optimize.rootnow warns for invalid inner parameters when using thenewton_krylovmethodmethod='L-BFGS-B'now hasa faster
hess_inv.todense()implementation. Time complexity has improvedfrom cubic to quadratic.
scipy.optimize.least_squareshas a newcallbackargument that is applicableto the
trfanddogboxmethods.callbackmay be used to trackoptimization results at each step or to provide custom conditions for
stopping.
scipy.signalimprovementsscipy.signal.firwin_2dfor the creation of a 2-D FIR Filterusing the 1-D window method was added.
scipy.signal.cspline1d_evalandscipy.signal.qspline1d_evalnow providean informative error on empty input rather than hitting the recursion limit.
scipy.signal.closest_STFT_dual_windowto calculate thescipy.signal.ShortTimeFFTdual window of a given window closest to adesired dual window.
scipy.signal.ShortTimeFFT.from_win_equals_dualtocreate a
scipy.signal.ShortTimeFFTinstance where the window and its dualare equal up to a scaling factor. It allows to create short-time Fourier
transforms which are unitary mappings.
scipy.signal.convolve2dwas improved.scipy.sparseimprovementsscipy.sparse.coo_arraynow supports n-D arrays using binary and reductionoperations.
matmul.
scipy.sparse.csgraph.dijkstrashortest_path is more efficient.scipy.sparse.csgraph.yenhas performance improvements.sparse.csgraphandsparse.linalgwasadded.
scipy.spatialimprovementsscipy.spatial.transform.RigidTransform, provides functionalityto convert between different representations of rigid transforms in 3-D
space, its application to vectors and transform composition.
It follows the same design approach as
scipy.spatial.transform.Rotation.scipy.spatial.transform.Rotationnow has an appropriate__repr__method,and improved performance for its
scipy.spatial.transform.Rotation.applymethod.
scipy.statsimprovementsscipy.stats.quantile, an array API compatible function forquantile estimation, was added.
scipy.stats.make_distributionwas extended to work with existing discretedistributions and to facilitate the creation of custom distributions in the
new random variable infrastructure.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.