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 Feb 1, 2024
1 parent 0046b98 commit f695e2a
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,
tType, iip, nlls}) where {uType, tType, iip, nlls}
return nlls
end

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

0 comments on commit f695e2a

Please sign in to comment.