-
Notifications
You must be signed in to change notification settings - Fork 475
set_block with symmetry_
#2734
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
Merged
Merged
set_block with symmetry_
#2734
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loriab
reviewed
Oct 4, 2022
Co-authored-by: Lori A. Burns <[email protected]>
loriab
approved these changes
Oct 4, 2022
psi-rking
approved these changes
Oct 5, 2022
| new_slice = Slice(Dimension([0, 0]), new_dim) | ||
| new_mat = Matrix("Name", new_dim, new_dim, 1) | ||
| mat.set_block(new_slice, new_slice, new_mat) | ||
| assert psi4.compare_matrices(mat, control_mat) |
Contributor
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.
After staring for a few minutes and finally figuring out what this test is testing, LGTM !
Contributor
|
Cool! I noticed "The extension to higher symmetries does not seem
promising, however." That looks pretty solid given that it's 2022 and we
still don't do it!
…On Wed, Oct 5, 2022 at 1:37 PM Jonathon Misiewicz ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In psi4/src/psi4/libmints/matrix.cc
<#2734 (comment)>:
> for (int p = 0; p < max_p; p++) {
for (int q = 0; q < max_q; q++) {
double value = block.get(h, p, q);
- set(h, p + rows_begin[h], q + cols_begin[h], value);
+ set(h, p + rows_begin[h], q + cols_begin[h ^ symmetry_], value);
That traces back to the MOLECULE code. See Section 4 of this report that
TDC has saved
<https://drive.google.com/file/d/1VtVpwvaleR1FF1hm2LchS2SQZ8_RHsJA/view>.
Molecule - A Program System for Non-Empirical Calculation of the Electronic
Structure of Molecules II. Integral Section. University of Stockholm
Institute of Physics Report 74 - 29, December 1974.
Hat tip to TDC for remembering this.
—
Reply to this email directly, view it on GitHub
<#2734 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4C4TBLGWXR5H5YZ7IKZATWBXDHRANCNFSM6AAAAAAQ32VGSQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
maxscheurer
approved these changes
Oct 5, 2022
lothian
approved these changes
Oct 5, 2022
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
See below.
User API & Changelog headlines
Matrix::set_blockcan be used on matrices that are not totally symmetric.Dev notes & details
Matrix::set_blockcan be used on matrices that are not totally symmetric.Matrix::set_blocknow raises an explicit error when the symmetry of the target and block matrices disagree.Checklist
Status