@@ -191,6 +191,9 @@ function MatrixAlgebraKit.svd_compact!(
191
191
bcolIs = Int .(last .(Tuple .(bIs)))
192
192
emptyrows = setdiff (1 : blocksize (A, 1 ), browIs)
193
193
emptycols = setdiff (1 : blocksize (A, 2 ), bcolIs)
194
+ # needs copyto! instead because size(::LinearAlgebra.I) doesn't work
195
+ # U[Block(row, col)] = LinearAlgebra.I
196
+ # Vt[Block(col, col)] = LinearAlgebra.I
194
197
for (row, col) in zip (emptyrows, emptycols)
195
198
copyto! (@view! (U[Block (row, col)]), LinearAlgebra. I)
196
199
copyto! (@view! (Vt[Block (col, col)]), LinearAlgebra. I)
@@ -221,6 +224,9 @@ function MatrixAlgebraKit.svd_full!(
221
224
bcolIs = Int .(last .(Tuple .(bIs)))
222
225
emptyrows = setdiff (1 : blocksize (A, 1 ), browIs)
223
226
emptycols = setdiff (1 : blocksize (A, 2 ), bcolIs)
227
+ # needs copyto! instead because size(::LinearAlgebra.I) doesn't work
228
+ # U[Block(row, col)] = LinearAlgebra.I
229
+ # Vt[Block(col, col)] = LinearAlgebra.I
224
230
for (row, col) in zip (emptyrows, emptycols)
225
231
copyto! (@view! (U[Block (row, col)]), LinearAlgebra. I)
226
232
copyto! (@view! (Vt[Block (col, col)]), LinearAlgebra. I)
0 commit comments