Skip to content

Commit

Permalink
Add a function to check nlls trait
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 21, 2023
1 parent 05ca0fc commit 12eab56
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/problems/bvp_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ struct BVProblem{uType, tType, isinplace, nlls, P, F, PT, K} <:
end
end

"""
isnonlinearleastsquares(prob::BVProblem)
Returns `true` if the underlying problem is a nonlinear least squares problem.
"""
@inline function isnonlinearleastsquares(::BVProblem{uType,

Check warning on line 184 in src/problems/bvp_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/bvp_problems.jl#L184

Added line #L184 was not covered by tests
tType, iip, nlls}) where {uType, tType, iip, nlls}
return nlls

Check warning on line 186 in src/problems/bvp_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/bvp_problems.jl#L186

Added line #L186 was not covered by tests
end

struct FakeSolutionObject{U}
u::U
end
Expand Down

0 comments on commit 12eab56

Please sign in to comment.