Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Aug 9, 2023
1 parent 79546a7 commit 4cd07dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if VERSION >= v"1.7.0-DEV.1188"
to_stdlib_pivot(::Val{false}) = LinearAlgebra.NoPivot()
end

function lu(A::AbstractMatrix, pivot = Val(true), thread = Val(true); kwargs...)
function lu(A::AbstractMatrix, pivot = Val(true), thread = Val(false); kwargs...)
return lu!(copy(A), normalize_pivot(pivot), thread; kwargs...)
end

Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ testlu(A::Union{Transpose, Adjoint}, MF, BF, p) = testlu(parent(A), parent(MF),
MF = mylu(A, p)
BF = baselu(A, p)
testlu(A, MF, BF, _p)
testlu(A, mylu(A, p, Val(false)), BF, false)
testlu(A, mylu(A, p, Val(true)), BF, false)
A′ = permutedims(A)
MF′ = mylu(A′', p)
testlu(A′', MF′, BF, _p)
testlu(A′', mylu(A′', p, Val(false)), BF, false)
testlu(A′', mylu(A′', p, Val(true)), BF, false)
i = rand(1:s) # test `MF.info`
A[:, i] .= 0
MF = mylu(A, p, check = false)
BF = baselu(A, p, check = false)
testlu(A, MF, BF, _p)
testlu(A, mylu(A, p, Val(false), check = false), BF, false)
testlu(A, mylu(A, p, Val(true), check = false), BF, false)
end
end
end
Expand Down

0 comments on commit 4cd07dc

Please sign in to comment.