Commit 146cc3f
Fix pinv for Symmetric/Hermitian wrapped SMatrix (#1336)
\`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>1 parent a9e23b9 commit 146cc3f
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
0 commit comments