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

use compound vec in bicg IR #621

Merged
merged 6 commits into from
May 31, 2023
Merged

use compound vec in bicg IR #621

merged 6 commits into from
May 31, 2023

Conversation

nychiang
Copy link
Collaborator

@nychiang nychiang commented May 2, 2023

  1. Development of compound vector.
  2. use compound vector in bicg IR.
  3. remove unnecessary temporary vectors

CLOSE #630

Comment on lines 2014 to 2025
dir_ir.getVector(0).copyFrom(*dx_);
dir_ir.getVector(1).copyFrom(*dd_);
dir_ir.getVector(2).copyFrom(*dyc_);
dir_ir.getVector(3).copyFrom(*dyd_);
dir_ir.getVector(4).copyFrom(*dsxl_);
dir_ir.getVector(5).copyFrom(*dsxu_);
dir_ir.getVector(6).copyFrom(*dsdl_);
dir_ir.getVector(7).copyFrom(*dsdu_);
dir_ir.getVector(8).copyFrom(*dzl_);
dir_ir.getVector(9).copyFrom(*dzu_);
dir_ir.getVector(10).copyFrom(*dvl_);
dir_ir.getVector(11).copyFrom(*dvu_);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the order to build the compound vector is hard-coded. Should we use unordered_map to avoid this? @cnpetra

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's still a draft PR. If we agree to this implementation, I will clean the code and add some comments.

Copy link
Collaborator

Choose a reason for hiding this comment

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

the order to build the compound vector is hard-coded. Should we use unordered_map to avoid this? @cnpetra

I was thinking to use a PrimalDualVector class instead of the so-called compound. It may not covered all the use cases though...

@nychiang nychiang marked this pull request as ready for review May 22, 2023 23:37
@nychiang nychiang requested a review from cnpetra May 22, 2023 23:37
@cnpetra cnpetra merged commit a518822 into develop May 31, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More changes are required in hiopCompoundVector
2 participants