Skip to content

Commit 28f008f

Browse files
committed
Use norm instead of abs in generic lu factorization
1 parent fba188c commit 28f008f

File tree

1 file changed

+2
-2
lines changed
  • stdlib/LinearAlgebra/src

1 file changed

+2
-2
lines changed

stdlib/LinearAlgebra/src/lu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ function generic_lufact!(A::StridedMatrix{T}, ::Val{Pivot} = Val(true);
140140
# find index max
141141
kp = k
142142
if Pivot
143-
amax = abs(zero(T))
143+
amax = norm(zero(T))
144144
for i = k:m
145-
absi = abs(A[i,k])
145+
absi = norm(A[i,k])
146146
if absi > amax
147147
kp = i
148148
amax = absi

0 commit comments

Comments
 (0)