Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix DimensionMismatch in loadings #229

Merged
merged 1 commit into from
May 30, 2024
Merged

Fix DimensionMismatch in loadings #229

merged 1 commit into from
May 30, 2024

Conversation

timholy
Copy link
Collaborator

@timholy timholy commented May 28, 2024

When the embedding has a number of zero eigenvalues, λ gets truncated.
However, U does not, and thus loadings throws a DimensionMismatch
error on master. This fixes that error.

Alternatively, we could truncate U as well, but retaining the full U
matrix makes it easier to obtain a full orthonormal basis, if desired.

When the embedding has a number of zero eigenvalues, `λ` gets truncated.
However, `U` does not, and thus `loadings` throws a `DimensionMismatch`
error on master. This fixes that error.

Alternatively, we could truncate `U` as well, but retaining the full `U`
matrix makes it easier to obtain a full orthonormal basis, if desired.
@timholy timholy merged commit c3067e2 into master May 30, 2024
6 checks passed
@timholy timholy deleted the teh/loadings branch May 30, 2024 08:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant