Repository navigation
Add MIT License - #5
Merged
Merged
Conversation
avik-pal
pushed a commit
that referenced
this pull request
Nov 1, 2024
Dramatically reduce dependencies
topolarity
added a commit
to topolarity/NonlinearSolve.jl
that referenced
this pull request
Aug 22, 2025
Compare `axpy!` in: ```julia julia> descend(NonlinearSolveFirstOrder.var"#step!SciML#5", (Nothing, typeof(NonlinearSolveBase.InternalAPI.step!), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, Vector{Float64}, Matrix{Float64}, NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithm{Missing, Missing, NonlinearSolveBase.NewtonDescent{Nothing}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, Val{false}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}, Val{:None}, NonlinearSolveBase.JacobianCache{Matrix{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, DifferentiationInterfaceFiniteDiffExt.FiniteDiffTwoArgJacobianPrep{Nothing, FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}, Float64, Float64, Bool}}, NonlinearSolveBase.NewtonDescentCache{Vector{Float64}, Nothing, NonlinearSolveBase.LinearSolveJLCache{LinearSolve.LinearCache{Matrix{Float64}, Vector{Float64}, Vector{Float64}, SciMLBase.NullParameters, LinearSolve.DefaultLinearSolver, LinearSolve.DefaultLinearSolverInit{LU{Float64, Matrix{Float64}, Vector{Int64}}, LinearAlgebra.QRCompactWY{Float64, Matrix{Float64}, Matrix{Float64}}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Nothing, Nothing, Nothing, SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}, Cholesky{Float64, Matrix{Float64}}, Cholesky{Float64, Matrix{Float64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int32}}, Base.RefValue{Int32}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, QRPivoted{Float64, Matrix{Float64}, Vector{Float64}, Vector{Int64}}, Nothing, Nothing, Nothing, Nothing, Nothing}, SciMLOperators.IdentityOperator, SciMLOperators.IdentityOperator, Float64, Bool, LinearSolve.LinearSolveAdjoint{Missing}}, Nothing}, Nothing, Nothing, Nothing, Val{false}, Val{false}}, Nothing, Nothing, Nothing, Nothing, NonlinearSolveBase.NonlinearTerminationModeCache{Vector{Float64}, Float64, NonlinearSolveBase.AbsNormSafeBestTerminationMode{typeof(NonlinearSolveBase.Linf_NORM), Nothing, Int64, Float64, Int64}, Float64, Vector{Float64}, Nothing, Nothing, Vector{Float64}, Int64}, NonlinearSolveBase.NonlinearSolveTrace{Val{false}, Val{false}, Nothing, NonlinearSolveBase.NonlinearSolveTracing{Val{:minimal}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}}, @kwargs{}, NonlinearSolveBase.NonlinearSolveDefaultInit})) ``` versus: ```julia julia> code_typed(NonlinearSolveFirstOrder.var"#step!SciML#5", (Nothing, typeof(NonlinearSolveBase.InternalAPI.step!), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, Vector{Float64}, Matrix{Float64}, NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithm{Missing, Missing, NonlinearSolveBase.NewtonDescent{Nothing}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, Val{false}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}, Val{:None}, NonlinearSolveBase.JacobianCache{Matrix{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, DifferentiationInterfaceFiniteDiffExt.FiniteDiffTwoArgJacobianPrep{Nothing, FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}, Float64, Float64, Bool}}, NonlinearSolveBase.NewtonDescentCache{Vector{Float64}, Nothing, NonlinearSolveBase.LinearSolveJLCache{LinearSolve.LinearCache{Matrix{Float64}, Vector{Float64}, Vector{Float64}, SciMLBase.NullParameters, LinearSolve.DefaultLinearSolver, LinearSolve.DefaultLinearSolverInit{LU{Float64, Matrix{Float64}, Vector{Int64}}, LinearAlgebra.QRCompactWY{Float64, Matrix{Float64}, Matrix{Float64}}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Nothing, Nothing, Nothing, SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}, Cholesky{Float64, Matrix{Float64}}, Cholesky{Float64, Matrix{Float64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int32}}, Base.RefValue{Int32}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, QRPivoted{Float64, Matrix{Float64}, Vector{Float64}, Vector{Int64}}, Nothing, Nothing, Nothing, Nothing, Nothing}, SciMLOperators.IdentityOperator, SciMLOperators.IdentityOperator, Float64, Bool, LinearSolve.LinearSolveAdjoint{Missing}}, Nothing}, Nothing, Nothing, Nothing, Val{false}, Val{false}}, Nothing, Nothing, Nothing, Nothing, NonlinearSolveBase.NonlinearTerminationModeCache{Vector{Float64}, Float64, NonlinearSolveBase.AbsNormSafeBestTerminationMode{typeof(NonlinearSolveBase.Linf_NORM), Nothing, Int64, Float64, Int64}, Float64, Vector{Float64}, Nothing, Nothing, Vector{Float64}, Int64}, NonlinearSolveBase.NonlinearSolveTrace{Val{false}, Val{false}, Nothing, NonlinearSolveBase.NonlinearSolveTracing{Val{:minimal}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}}, @kwargs{}, NonlinearSolveBase.NonlinearSolveDefaultInit})) ```
topolarity
added a commit
to topolarity/NonlinearSolve.jl
that referenced
this pull request
Aug 22, 2025
Compare `axpy!` in: ```julia julia> descend(NonlinearSolveFirstOrder.var"#step!SciML#5", (Nothing, typeof(NonlinearSolveBase.InternalAPI.step!), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, Vector{Float64}, Matrix{Float64}, NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithm{Missing, Missing, NonlinearSolveBase.NewtonDescent{Nothing}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, Val{false}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}, Val{:None}, NonlinearSolveBase.JacobianCache{Matrix{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, DifferentiationInterfaceFiniteDiffExt.FiniteDiffTwoArgJacobianPrep{Nothing, FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}, Float64, Float64, Bool}}, NonlinearSolveBase.NewtonDescentCache{Vector{Float64}, Nothing, NonlinearSolveBase.LinearSolveJLCache{LinearSolve.LinearCache{Matrix{Float64}, Vector{Float64}, Vector{Float64}, SciMLBase.NullParameters, LinearSolve.DefaultLinearSolver, LinearSolve.DefaultLinearSolverInit{LU{Float64, Matrix{Float64}, Vector{Int64}}, LinearAlgebra.QRCompactWY{Float64, Matrix{Float64}, Matrix{Float64}}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Nothing, Nothing, Nothing, SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}, Cholesky{Float64, Matrix{Float64}}, Cholesky{Float64, Matrix{Float64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int32}}, Base.RefValue{Int32}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, QRPivoted{Float64, Matrix{Float64}, Vector{Float64}, Vector{Int64}}, Nothing, Nothing, Nothing, Nothing, Nothing}, SciMLOperators.IdentityOperator, SciMLOperators.IdentityOperator, Float64, Bool, LinearSolve.LinearSolveAdjoint{Missing}}, Nothing}, Nothing, Nothing, Nothing, Val{false}, Val{false}}, Nothing, Nothing, Nothing, Nothing, NonlinearSolveBase.NonlinearTerminationModeCache{Vector{Float64}, Float64, NonlinearSolveBase.AbsNormSafeBestTerminationMode{typeof(NonlinearSolveBase.Linf_NORM), Nothing, Int64, Float64, Int64}, Float64, Vector{Float64}, Nothing, Nothing, Vector{Float64}, Int64}, NonlinearSolveBase.NonlinearSolveTrace{Val{false}, Val{false}, Nothing, NonlinearSolveBase.NonlinearSolveTracing{Val{:minimal}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}}, @kwargs{}, NonlinearSolveBase.NonlinearSolveDefaultInit})) ``` versus: ```julia julia> code_typed(NonlinearSolveFirstOrder.var"#step!SciML#5", (Nothing, typeof(NonlinearSolveBase.InternalAPI.step!), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, Vector{Float64}, Matrix{Float64}, NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithm{Missing, Missing, NonlinearSolveBase.NewtonDescent{Nothing}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, Val{false}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}, Val{:None}, NonlinearSolveBase.JacobianCache{Matrix{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, DifferentiationInterfaceFiniteDiffExt.FiniteDiffTwoArgJacobianPrep{Nothing, FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}, Float64, Float64, Bool}}, NonlinearSolveBase.NewtonDescentCache{Vector{Float64}, Nothing, NonlinearSolveBase.LinearSolveJLCache{LinearSolve.LinearCache{Matrix{Float64}, Vector{Float64}, Vector{Float64}, SciMLBase.NullParameters, LinearSolve.DefaultLinearSolver, LinearSolve.DefaultLinearSolverInit{LU{Float64, Matrix{Float64}, Vector{Int64}}, LinearAlgebra.QRCompactWY{Float64, Matrix{Float64}, Matrix{Float64}}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Nothing, Nothing, Nothing, SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}, Cholesky{Float64, Matrix{Float64}}, Cholesky{Float64, Matrix{Float64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int32}}, Base.RefValue{Int32}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, QRPivoted{Float64, Matrix{Float64}, Vector{Float64}, Vector{Int64}}, Nothing, Nothing, Nothing, Nothing, Nothing}, SciMLOperators.IdentityOperator, SciMLOperators.IdentityOperator, Float64, Bool, LinearSolve.LinearSolveAdjoint{Missing}}, Nothing}, Nothing, Nothing, Nothing, Val{false}, Val{false}}, Nothing, Nothing, Nothing, Nothing, NonlinearSolveBase.NonlinearTerminationModeCache{Vector{Float64}, Float64, NonlinearSolveBase.AbsNormSafeBestTerminationMode{typeof(NonlinearSolveBase.Linf_NORM), Nothing, Int64, Float64, Int64}, Float64, Vector{Float64}, Nothing, Nothing, Vector{Float64}, Int64}, NonlinearSolveBase.NonlinearSolveTrace{Val{false}, Val{false}, Nothing, NonlinearSolveBase.NonlinearSolveTracing{Val{:minimal}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}}, @kwargs{}, NonlinearSolveBase.NonlinearSolveDefaultInit})) ```
topolarity
added a commit
to topolarity/NonlinearSolve.jl
that referenced
this pull request
Aug 22, 2025
Compare `axpy!` in: ```julia julia> descend(NonlinearSolveFirstOrder.var"#step!SciML#5", (Nothing, typeof(NonlinearSolveBase.InternalAPI.step!), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, Vector{Float64}, Matrix{Float64}, NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithm{Missing, Missing, NonlinearSolveBase.NewtonDescent{Nothing}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, Val{false}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}, Val{:None}, NonlinearSolveBase.JacobianCache{Matrix{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, DifferentiationInterfaceFiniteDiffExt.FiniteDiffTwoArgJacobianPrep{Nothing, FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}, Float64, Float64, Bool}}, NonlinearSolveBase.NewtonDescentCache{Vector{Float64}, Nothing, NonlinearSolveBase.LinearSolveJLCache{LinearSolve.LinearCache{Matrix{Float64}, Vector{Float64}, Vector{Float64}, SciMLBase.NullParameters, LinearSolve.DefaultLinearSolver, LinearSolve.DefaultLinearSolverInit{LU{Float64, Matrix{Float64}, Vector{Int64}}, LinearAlgebra.QRCompactWY{Float64, Matrix{Float64}, Matrix{Float64}}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Nothing, Nothing, Nothing, SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}, Cholesky{Float64, Matrix{Float64}}, Cholesky{Float64, Matrix{Float64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int32}}, Base.RefValue{Int32}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, QRPivoted{Float64, Matrix{Float64}, Vector{Float64}, Vector{Int64}}, Nothing, Nothing, Nothing, Nothing, Nothing}, SciMLOperators.IdentityOperator, SciMLOperators.IdentityOperator, Float64, Bool, LinearSolve.LinearSolveAdjoint{Missing}}, Nothing}, Nothing, Nothing, Nothing, Val{false}, Val{false}}, Nothing, Nothing, Nothing, Nothing, NonlinearSolveBase.NonlinearTerminationModeCache{Vector{Float64}, Float64, NonlinearSolveBase.AbsNormSafeBestTerminationMode{typeof(NonlinearSolveBase.Linf_NORM), Nothing, Int64, Float64, Int64}, Float64, Vector{Float64}, Nothing, Nothing, Vector{Float64}, Int64}, NonlinearSolveBase.NonlinearSolveTrace{Val{false}, Val{false}, Nothing, NonlinearSolveBase.NonlinearSolveTracing{Val{:minimal}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}}, @kwargs{}, NonlinearSolveBase.NonlinearSolveDefaultInit})) ``` versus: ```julia julia> code_typed(NonlinearSolveFirstOrder.var"#step!SciML#5", (Nothing, typeof(NonlinearSolveBase.InternalAPI.step!), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, Vector{Float64}, Matrix{Float64}, NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithm{Missing, Missing, NonlinearSolveBase.NewtonDescent{Nothing}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, Val{false}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}, Val{:None}, NonlinearSolveBase.JacobianCache{Matrix{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, Vector{Float64}, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, ADTypes.AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}, Nothing, Nothing, Bool}, DifferentiationInterfaceFiniteDiffExt.FiniteDiffTwoArgJacobianPrep{Nothing, FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}, Float64, Float64, Bool}}, NonlinearSolveBase.NewtonDescentCache{Vector{Float64}, Nothing, NonlinearSolveBase.LinearSolveJLCache{LinearSolve.LinearCache{Matrix{Float64}, Vector{Float64}, Vector{Float64}, SciMLBase.NullParameters, LinearSolve.DefaultLinearSolver, LinearSolve.DefaultLinearSolverInit{LU{Float64, Matrix{Float64}, Vector{Int64}}, LinearAlgebra.QRCompactWY{Float64, Matrix{Float64}, Matrix{Float64}}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Vector{Int64}}, Nothing, Nothing, Nothing, SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}, Cholesky{Float64, Matrix{Float64}}, Cholesky{Float64, Matrix{Float64}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int32}}, Base.RefValue{Int32}}, Tuple{LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, QRPivoted{Float64, Matrix{Float64}, Vector{Float64}, Vector{Int64}}, Nothing, Nothing, Nothing, Nothing, Nothing}, SciMLOperators.IdentityOperator, SciMLOperators.IdentityOperator, Float64, Bool, LinearSolve.LinearSolveAdjoint{Missing}}, Nothing}, Nothing, Nothing, Nothing, Val{false}, Val{false}}, Nothing, Nothing, Nothing, Nothing, NonlinearSolveBase.NonlinearTerminationModeCache{Vector{Float64}, Float64, NonlinearSolveBase.AbsNormSafeBestTerminationMode{typeof(NonlinearSolveBase.Linf_NORM), Nothing, Int64, Float64, Int64}, Float64, Vector{Float64}, Nothing, Nothing, Vector{Float64}, Int64}, NonlinearSolveBase.NonlinearSolveTrace{Val{false}, Val{false}, Nothing, NonlinearSolveBase.NonlinearSolveTracing{Val{:minimal}}, SciMLBase.NonlinearProblem{Vector{Float64}, true, Tuple{Vector{Float64}, Vector{Float64}, Float64, Float64, Float64, Vector{Float64}, Float64, OrdinaryDiffEqCore.MethodType, SciMLBase.NullParameters, Float64, SciMLBase.ODEFunction{true, SciMLBase.FullSpecialize, typeof(Main.MyModule.TestModuleTrimmable.lorenz), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, Nothing, Nothing}}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, typeof(OrdinaryDiffEqNonlinearSolve.odenlf), UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @kwargs{}, SciMLBase.StandardNonlinearProblem}}, @kwargs{}, NonlinearSolveBase.NonlinearSolveDefaultInit})) ```
2 tasks done
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.
No description provided.