Skip to content

Conversation

@JonathonMisiewicz
Copy link
Contributor

Description

See below.

User API & Changelog headlines

  • Matrix::set_block can be used on matrices that are not totally symmetric.

Dev notes & details

  • Matrix::set_block can be used on matrices that are not totally symmetric.
  • Matrix::set_block now raises an explicit error when the symmetry of the target and block matrices disagree.

Checklist

  • New test working

Status

  • Ready for review
  • Ready for merge

@JonathonMisiewicz JonathonMisiewicz added the libmints For things that are wrong with libmints (but not wavefunction). label Oct 3, 2022
@JonathonMisiewicz JonathonMisiewicz added this to the Psi4 1.7 milestone Oct 3, 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)
Copy link
Contributor

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 !

@psi-rking
Copy link
Contributor

psi-rking commented Oct 5, 2022 via email

@loriab loriab merged commit 3e3fcc3 into psi4:master Oct 5, 2022
@JonathonMisiewicz JonathonMisiewicz deleted the set_block branch October 5, 2022 20:41
@JonathonMisiewicz JonathonMisiewicz mentioned this pull request Oct 19, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libmints For things that are wrong with libmints (but not wavefunction).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants