-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return Residual in CalcFactor #1147
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1147 +/- ##
==========================================
+ Coverage 70.27% 71.71% +1.43%
==========================================
Files 55 55
Lines 4282 4613 +331
==========================================
+ Hits 3009 3308 +299
- Misses 1273 1305 +32
Continue to review full report at Codecov.
|
@@ -43,7 +43,7 @@ function _solveLambdaNumeric( fcttype::Union{F,<:Mixture{N_,F,S,T}}, | |||
# | |||
|
|||
# | |||
r = nlsolve(objResX, u0, inplace=true) | |||
r = nlsolve( (res, x) -> res .= objResX(x), u0, inplace=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you are doing the opposite of what I was doing. I had residual
explicitly available for in-place operations (which we will still keep somewhere in CalcFactor.residual::T
for hard in-place factor situations).
I see here now that you are changing to a more implicit usage of residual
in the Roots (NLsolve.jl) case. I did not see this before, sorry if I missed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WIP towards #467