Skip to content

Commit 39f1e9f

Browse files
committed
Drop the Q checks
1 parent 75659f6 commit 39f1e9f

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/pushforwards/lq.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function lq_pushforward!(
3333
p = lq_rank(L; rank_atol)
3434
(m, n) == size(ΔA) || throw(DimensionMismatch("size of ΔA ($(size(ΔA))) does not match size of L*Q ($m, $n)"))
3535

36-
if Base.mightalias(ΔA, ΔL) || (ΔQ !== ΔA && Base.mightalias(ΔA, ΔQ))
36+
if Base.mightalias(ΔA, ΔL)
3737
ΔA = copy(ΔA)
3838
end
3939

‎src/pushforwards/qr.jl‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ function qr_pushforward!(
3030
p = qr_rank(R; rank_atol)
3131
(m, n) == size(ΔA) || throw(DimensionMismatch("size of ΔA ($(size(ΔA))) does not match size of Q*R ($m, $n)"))
3232

33-
# `ΔQ === ΔA` is handled by ordering the operations so
34-
# that every column of ΔA is used before the same column of ΔQ is overwritten;
35-
# any other overlap between the tangents forces a copy of ΔA.
36-
if Base.mightalias(ΔA, ΔR) || (ΔQ !== ΔA && Base.mightalias(ΔA, ΔQ))
33+
if Base.mightalias(ΔA, ΔR)
3734
ΔA = copy(ΔA)
3835
end
3936

0 commit comments

Comments
 (0)