File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ function MatrixAlgebraKit.left_polar!(A::AbstractBlockSparseMatrix, alg::PolarVi
29
29
# TODO : Use more in-place operations here, avoid `copy`.
30
30
U, S, Vᴴ = svd_compact! (A, alg. svdalg)
31
31
W = U * Vᴴ
32
+ # TODO : `copy` is required for now because of:
33
+ # https://github.com/ITensor/BlockSparseArrays.jl/issues/24
34
+ # Remove when that is fixed.
32
35
P = copy (Vᴴ' ) * S * Vᴴ
33
36
return (W, P)
34
37
end
@@ -37,6 +40,9 @@ function MatrixAlgebraKit.right_polar!(A::AbstractBlockSparseMatrix, alg::PolarV
37
40
# TODO : Use more in-place operations here, avoid `copy`.
38
41
U, S, Vᴴ = svd_compact! (A, alg. svdalg)
39
42
Wᴴ = U * Vᴴ
43
+ # TODO : `copy` is required for now because of:
44
+ # https://github.com/ITensor/BlockSparseArrays.jl/issues/24
45
+ # Remove when that is fixed.
40
46
P = U * S * copy (U' )
41
47
return (P, Wᴴ)
42
48
end
You can’t perform that action at this time.
0 commit comments