Skip to content

Commit

Permalink
Update least_squares.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Nov 3, 2023
1 parent b6d38d7 commit cf03317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/least_squares.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using SimpleNonlinearSolve, Random, LinearAlgebra, Test
using SimpleNonlinearSolve, LinearAlgebra, Test

true_function(x, θ) = @. θ[1] * exp(θ[2] * x) * cos(θ[3] * x + θ[4])

Expand All @@ -16,4 +16,4 @@ prob_oop = NonlinearLeastSquaresProblem{false}(loss_function, θ_init, x)
sol = solve(prob_oop, SimpleNewtonRaphson())
sol = solve(prob_oop, SimpleGaussNewton())

@test norm(sol.resid) < 1e-12
@test norm(sol.resid) < 1e-12

0 comments on commit cf03317

Please sign in to comment.