I wonder if you read the docs of lu, since you can get it directly as a property:
julia> lu(A).P
3×3 Array{Float64,2}:
0.0 1.0 0.0
1.0 0.0 0.0
0.0 0.0 1.0
I wonder if you read the docs of lu, since you can get it directly as a property:
julia> lu(A).P
3×3 Array{Float64,2}:
0.0 1.0 0.0
1.0 0.0 0.0
0.0 0.0 1.0