Commit c3067e2
authored
Fix DimensionMismatch in
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.loadings (#229)1 parent e64e4f4 commit c3067e2
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
0 commit comments