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

Testing for PSDP #173

Merged
merged 7 commits into from
Aug 31, 2022
Merged

Testing for PSDP #173

merged 7 commits into from
Aug 31, 2022

Conversation

banrovegrie
Copy link
Member

The first commit deals with #172. Scaling, translation etc. have been fixed for the input arrays. There are some changes to docstring too. Namely:

  • Representing $R$ as $\mathbb{R}$.
  • Using citations and references better within the docstring.
  • Clarifying why $\mathbf{A}$ and $\mathbf{B}$ are referred to as $\mathbf{G}$ and $\mathbf{F}$ respectively.

@FanwangM
Copy link
Collaborator

FanwangM commented Jul 24, 2022

Is this PR complete? You can tag me wherever you think it's ready for code review. Thank you. @banrovegrie

@banrovegrie
Copy link
Member Author

Yea, I will tag you as soon as this is complete.

@banrovegrie
Copy link
Member Author

@FanwangM initially my tests were failing now I have fixed the basic tests. I will open a new PR for uploading the new algorithm's implementation

@banrovegrie
Copy link
Member Author

This PR relates to the tests required for #98.

Copy link
Collaborator

@FanwangM FanwangM 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 is very nice. Thank you for the contribution. I have put some minor comments, which should be easy to fix. You can put comments if there is anything unclear.

@FanwangM
Copy link
Collaborator

FanwangM commented Aug 30, 2022

One more tip. For merging the upstream repo code to your local branch, a better way is to use git rebase. For example, if your current working branch is test-psdp, you can do

git checkout master
# suppose you have setup [email protected]:theochem/procrustes.git as your upper steam, named theochem
git pull theochem master
# if you want to update your master branch remotely
# git push origin master
git checkout test-psdp
git rebase master
git push test-psdp

A good point of doing this is that we will avoid the commit history of merging upstream codes. If you want to practice, you can close this PR and create a new one following this trick. But it doesn't matter too much whichever way you go. @banrovegrie

More details can be found at https://www.atlassian.com/git/tutorials/merging-vs-rebasing and https://git-scm.com/docs/git-rebase.

@banrovegrie
Copy link
Member Author

Oh yeah, I should rebase instead of the way I merged. I will keep that in mind from now on. Thanks!

@banrovegrie
Copy link
Member Author

@FanwangM after we merge this, I will open the PR for algorithm 2 (Peng et al).

Some issues with the Peng Algorithm:

  1. What does $\ast$ denote in the definition of $\hat{S}$?
    $$\hat{S} = \Phi \ast (U^T_1 F V_1 \Sigma + \Sigma V^T_1 F^TU_1)$$

  2. Doesn't $\Phi \in \mathbb{R}^{r \times r}$ rather than $\mathbb{R}^{n\times n}$?

  3. What does $\hat{P_{11}^{+}}$ in the paper? Am I supposed to take transpose conjugate or something (which doesn't make sense)? Also, $\hat{P_{11}}$ by default has all of its eigenvalues $\geq 0$.

Copy link
Collaborator

@FanwangM FanwangM 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 is complete now. I am going to merge it. This PR fixes #172.

Thank you for the nice improvement! @banrovegrie
I have moved your question to the Discussion board.

@FanwangM FanwangM merged commit 312da41 into theochem:master Aug 31, 2022
@banrovegrie
Copy link
Member Author

Thanks a lot!

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.

2 participants