0.1.1 release#220
Merged
Merged
Conversation
Collaborator
Author
|
Open to redrafts on the release notes, we can merge after diffrax 751. |
Owner
|
🦭 of approval! Congratulations on your first release for Lineax! 🎉 |
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 is mostly a bug fix, documentation and under-the-hood performance improvement release with one new feature—the
lx.inverttransformation which produces an operator representing the inverse of a matrix. Use of coloring rules should make using implicit solvers in diffrax for tridiagonalJacobian/FunctionLinearOperators at least an order of magnitude faster.Breaking Changes
(Tri)DiagonalOperatorexplicitly, please raise an issue if you need any further assistance.lineax.linear_solvenow stop-gradient's automatically (updatestatedocstring to be clearer; simplify its use by stop-gradient'ing it automatically #213), it is unlikely this will break any existing use-cases but may make manual stop-gradienting unecessaryFeatures
lineax.linear_solveinFunctionLinearOperator. Materialising an inverse is now as simple aslx.invert(op).as_matrix(). (Add invert helper function to wrap linear_solve in FunctionLinearOperator #206)Compatibility
Bugfixes
Composed/Neg/Mul/AddLinearOperator) (fix derived tag check rules #192)custom_vjp's are now supported bylineax.linearize(JacobianLinearOperator(f, x, jac="bwd"))by usingjax.linear_transposeunder the hood. (fix linearise for JacobianLinearOperator with jac=bwd and use linear_transpose in mv #191)lineax.LSMRno longer fails when initial residual is exactly zero. (HUGE thanks to @f0uriest for spotting this tricky and hard-to-spot bug Add shortcut to LSMR in event that initial residual is exactly zero #202)linear_solve's no longer differentiates throughsolver.initthis means using solver's with no or incorrect jvp rule is now possible (prevent linear_solve calling jvp of solver.init #212)Performance
Jacobian/FunctionLinearOperators(Support "diagonal" primitives with no/slow JVP batch rule #164, Streamline tridiagonalisation of JacobianLinearOperator/FunctionLinearOperator using coloring method #165)lineax.lineariseunder the hood to avoid multiple sequential AD passes (apply linearise in init for Normal and iterative solvers #198)lineax.Normal(lineax.Cholesky())now materialises the inner operator before constructing the Gram matrix (materialise Normal(Cholesky()) inner solver #207)ComposedLinearOperator.as_matrixno longer materialises each matrix first but instead batchesmvof the first operator over the second matrix (use mv in ComposedLinearOperator.as_matrix to avoid unecessary materialisation #196)Documentation
lineax.LSMRiterative least square solver is now properly documented (added LSMR to docs #204) after @f0uriest's Add shortcut to LSMR in event that initial residual is exactly zero #202 bug-fixes make it more robust.Other repo infra PR's not affecting Python package include #214, #216 and #218.
New Contributors
Full Changelog: v0.1.0...v0.1.1