Skip to content

Fix pinv for Symmetric/Hermitian wrapped SMatrix#1336

Merged
mateuszbaran merged 2 commits intoJuliaArrays:masterfrom
aplavin:fix-pinv-symmetric
Mar 10, 2026
Merged

Fix pinv for Symmetric/Hermitian wrapped SMatrix#1336
mateuszbaran merged 2 commits intoJuliaArrays:masterfrom
aplavin:fix-pinv-symmetric

Conversation

@aplavin
Copy link
Member

@aplavin aplavin commented Mar 9, 2026

`pinv(Symmetric(smatrix))` failed because the `pinv` codepath tried to construct a `Symmetric` from the SVD result, which doesn't work.

Fix: unwrap `HermOrSym` to the underlying `StaticMatrix` before calling `_pinv`.

Co-authored-by: Mateusz Baran <mateuszbaran89@gmail.com>
@mateuszbaran mateuszbaran merged commit 146cc3f into JuliaArrays:master Mar 10, 2026
17 of 24 checks passed
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