Skip to content

Commit 822bd1a

Browse files
committed
Another fix
1 parent cacd9ca commit 822bd1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/pullbacks/qr.jl‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ ambiguity. Additionally, rows of `ΔR` beyond the rank are zeroed out.
157157
"""
158158
function remove_qr_gauge_dependence!(ΔQ, ΔR, A, Q, R; rank_atol = MatrixAlgebraKit.default_pullback_rank_atol(R))
159159
r = MatrixAlgebraKit.qr_rank(R; rank_atol)
160-
minmn = min(size(A)...)
160+
m, n = size(A, 1), size(A, 2)
161+
minmn = min(m, n)
161162
Q₁ = view(Q, :, 1:r)
162163
ΔQ₂ = view(ΔQ, :, (r + 1):minmn)
163164
zero!(ΔQ₂)

0 commit comments

Comments
 (0)