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

Refactor: EXX-DM #3068

Merged
merged 7 commits into from
Oct 27, 2023
Merged

Refactor: EXX-DM #3068

merged 7 commits into from
Oct 27, 2023

Conversation

maki49
Copy link
Collaborator

@maki49 maki49 commented Oct 16, 2023

What's Changed

  • change the type of EXX-DM from matrix/ComplexMatrix to vector (consistent with DensityMatrix based on HContainer), so that loc.dm_gamma/dm_k is not needed anymore
  • retain the mixing interface of matrix/ComplexMatrix
  • add UTs for mixing interface of vector

Why Refactor

During #2460, an inconsistent type of DM blocks me from interfacing my gamma/k-unified Operator to a pre-LibRI function RI_2D_Comm::split_m2D_ktoR.

@maki49 maki49 requested a review from PeizeLin October 23, 2023 02:55
Copy link
Collaborator

@dyzheng dyzheng left a comment

Choose a reason for hiding this comment

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

This PR used new module DensityMatrix to refactor density mixing code in module_ri, the outdated tools "matrix" and "ComplexMatrix" has been replaced to general STL container "vector", which is friendly for coding.

@maki49 maki49 removed the request for review from PeizeLin October 23, 2023 06:35
@Qianruipku Qianruipku merged commit 098fe80 into deepmodeling:develop Oct 27, 2023
11 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.

5 participants