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

Add sqmatrix-set routine #105

Merged
merged 1 commit into from
Jul 29, 2020
Merged

Add sqmatrix-set routine #105

merged 1 commit into from
Jul 29, 2020

Conversation

thchr
Copy link
Contributor

@thchr thchr commented Jun 24, 2019

It is occasionally useful to be able to set/change individual elements of a sqmatrix: this adds a Scheme routine to do that, one element at a time, i.e. a routine (sqmatrix-set mo i j c), which sets the (i,j)th element of a sqmatrix mo to the cnumber c, returning nothing.

The present use-case, in case it is of relevance, is to extract submatrices from dot-eigenvector corresponding to overlaps between modes that are not necessarily neighboring; but I've found myself reaching for similar functionality before.

@stevengj stevengj merged commit 83e6ebc into NanoComp:master Jul 29, 2020
@thchr thchr deleted the sqmatrix branch September 23, 2020 19:48
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