Skip to content
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

Improve performance of QolElemAtom #620

Merged
merged 3 commits into from
May 5, 2024
Merged

Improve performance of QolElemAtom #620

merged 3 commits into from
May 5, 2024

Conversation

odow
Copy link
Member

@odow odow commented May 5, 2024

x-ref #614

Copy link

codecov bot commented May 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.88%. Comparing base (9b619a2) to head (96312a1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #620   +/-   ##
=======================================
  Coverage   97.88%   97.88%           
=======================================
  Files          88       88           
  Lines        5062     5068    +6     
=======================================
+ Hits         4955     4961    +6     
  Misses        107      107           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -21,6 +21,8 @@ function MOI.output_dimension(v::VectorAffineFunctionAsMatrix)
return size(v.matrix, 1)
end

to_vaf(tape::SPARSE_VECTOR) = tape
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've wanted this also, but I skipped it since vaf was supposed to mean VectorAffineFunction. Maybe we can do this + rename it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to leave this hack for now, and rename it in a separate PR. to_vaf is really _to_vector_moi

@odow odow merged commit ed144dc into master May 5, 2024
10 checks passed
@odow odow deleted the od/perf-qolelem branch May 5, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants