33 ΔA, A, USVᴴ, ΔUSVᴴ, [ind];
44 rank_atol::Real = default_pullback_rank_atol(USVᴴ[2]),
55 degeneracy_atol::Real = default_pullback_rank_atol(USVᴴ[2]),
6- gauge_atol::Real = default_pullback_gauge_atol(USVᴴ[2 ])
6+ gauge_atol::Real = default_pullback_gauge_atol(ΔUSVᴴ[1], ΔUSVᴴ[3 ])
77 )
88
99Adds the pullback from the SVD of `A` to `ΔA` given the output USVᴴ of `svd_compact` or
@@ -24,7 +24,7 @@ function svd_pullback!(
2424 ΔA:: AbstractMatrix , A, USVᴴ, ΔUSVᴴ, ind = Colon();
2525 rank_atol:: Real = default_pullback_rank_atol(USVᴴ[2 ]),
2626 degeneracy_atol:: Real = default_pullback_rank_atol(USVᴴ[2 ]),
27- gauge_atol:: Real = default_pullback_gauge_atol(USVᴴ[ 2 ])
27+ gauge_atol:: Real = default_pullback_gauge_atol(ΔUSVᴴ[ 1 ], ΔUSVᴴ[ 3 ])
2828 )
2929
3030 # Extract the SVD components
106106 ΔA, A, USVᴴ, ΔUSVᴴ;
107107 rank_atol::Real = default_pullback_rank_atol(USVᴴ[2]),
108108 degeneracy_atol::Real = default_pullback_rank_atol(USVᴴ[2]),
109- gauge_atol::Real = default_pullback_gauge_atol(USVᴴ[2 ])
109+ gauge_atol::Real = default_pullback_gauge_atol(ΔUSVᴴ[1], ΔUSVᴴ[3 ])
110110 )
111111
112112Adds the pullback from the truncated SVD of `A` to `ΔA`, given the output `USVᴴ` and the
@@ -127,7 +127,7 @@ function svd_trunc_pullback!(
127127 ΔA::AbstractMatrix, A, USVᴴ, ΔUSVᴴ;
128128 rank_atol::Real = 0,
129129 degeneracy_atol::Real = default_pullback_rank_atol(USVᴴ[2]),
130- gauge_atol::Real = default_pullback_gauge_atol(USVᴴ[2 ])
130+ gauge_atol::Real = default_pullback_gauge_atol(ΔUSVᴴ[1], ΔUSVᴴ[3 ])
131131 )
132132
133133 # Extract the SVD components
0 commit comments