-
Notifications
You must be signed in to change notification settings - Fork 14
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
matrix-less dQ #59
matrix-less dQ #59
Conversation
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
==========================================
- Coverage 91.77% 91.39% -0.39%
==========================================
Files 4 4
Lines 304 302 -2
==========================================
- Hits 279 276 -3
- Misses 25 26 +1
Continue to review full report at Codecov.
|
Good to merge |
if someone wants to have a final look before merging this |
src/MOI_wrapper.jl
Outdated
end | ||
|
||
du, dv, dw = dz[1:n], dz[n+1:n+m], dz[n+m+1] | ||
@inbounds (du, dv, dw) = (dz[1:n], dz[n+1:n+m], dz[n+m+1]) |
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.
This @inbounds
may trigger more segfault (when we change this function and forget something) than have any visible effect on perf no ? This isn't a critical part of the code.
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.
yes right, normally we control the size of dz deduced from the RHS we form but the bound check might be more future-proof
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.
updated
In backward_conic,
dQ
is materialized only for a matrix-vector product, it is eliminated from the pass.There should also be a way to avoid materializing
Q
, and ultimately reasoning on the sparse construction of the problem and not its explicit matrix form