Skip to content

Commit 4058f90

Browse files
committed
use _norm to measure convergence to support interval arithmetic
1 parent d13c5ea commit 4058f90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/infqr.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ function materialize!(M::MatLmulVec{<:QRPackedQLayout{<:AdaptiveLayout},<:Padded
175175
B
176176
end
177177

178+
_norm(x::Number) = abs(x)
179+
178180
function materialize!(M::MatLmulVec{<:AdjQRPackedQLayout{<:AdaptiveLayout},<:PaddedLayout})
179181
adjA,B = M.A,M.B
180182
T = eltype(M)
@@ -203,7 +205,7 @@ function materialize!(M::MatLmulVec{<:AdjQRPackedQLayout{<:AdaptiveLayout},<:Pad
203205
cs_max = maximum(cs)
204206
kr = j:cs_max
205207
resizedata!(B, min(cs_max,mB))
206-
if (j > sB && maximum(abs,view(B.data,j:last(colsupport(A.factors,j)))) tol)
208+
if (j > sB && maximum(_norm,view(B.data,j:last(colsupport(A.factors,j)))) tol)
207209
break
208210
end
209211
partialqr!(A.factors.data, min(cs_max,nA))

0 commit comments

Comments
 (0)