Skip to content

Commit 1242052

Browse files
AkhilAkkapellijpsamaroo
authored andcommitted
Remove debug print statements from pivoting functions in LU factorization
1 parent d508952 commit 1242052

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/array/lu.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,18 @@ function searchmax_pivot!(piv_idx::AbstractArray{Int}, piv_val::AbstractArray{T}
3232
max_idx = argmax(abs.(A[:]))
3333
piv_idx[1] = offset+max_idx
3434
piv_val[1] = A[max_idx]
35-
println("searchmax_pivot: ", piv_idx[1], "\n", abs(piv_val[1]))
3635
end
3736

3837
function update_ipiv!(ipivl, piv_idx::AbstractArray{Int}, piv_val::AbstractArray{T}, k::Int, nb::Int) where T
3938
max_piv_idx = argmax(abs.(piv_val))
4039
ipivl[1] = (max_piv_idx+k-2)*nb + piv_idx[max_piv_idx]
41-
println("update_ipiv: ", ipivl[1])
4240
end
4341

4442
function swaprows_panel!(A::AbstractArray{T}, M::AbstractArray{T}, ipivl::AbstractVector{Int}, m::Int, p::Int, nb::Int) where T
4543
q = div(ipivl[1]-1,nb) + 1
4644
r = (ipivl[1]-1)%nb+1
4745
if m == q
4846
A[p,:], M[r,:] = M[r,:], A[p,:]
49-
println("swaprows_panel: ", imag.(A[p,:]), "\n", imag.(M[r,:]))
5047
end
5148
end
5249

@@ -62,7 +59,6 @@ function swaprows_trail!(A::AbstractArray{T}, M::AbstractArray{T}, ipiv::Abstrac
6259
r = (ipiv[p]-1)%nb+1
6360
if m == q
6461
A[p,:], M[r,:] = M[r,:], A[p,:]
65-
println("swaprows_trail: ", imag.(A[p,:]), "\n", imag.(M[r,:]))
6662
end
6763
end
6864
end

0 commit comments

Comments
 (0)