Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: sort eigenvalues in a canonical order #21598

Merged
merged 15 commits into from
Feb 5, 2019
Prev Previous commit
Next Next commit
missing check in permutecols
  • Loading branch information
stevengj committed Feb 1, 2019
commit cf08bdabe64f2a8dd5c83c5b792a2fc513f87fe9
1 change: 1 addition & 0 deletions base/combinatorics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function swapcols!(a::AbstractMatrix, i, j)
end
# like permute!! applied to each row of a, in-place in a (overwriting p).
function permutecols!!(a::AbstractMatrix, p::AbstractVector{<:Integer})
require_one_based_indexing(a, p)
count = 0
start = 0
while count < length(p)
Expand Down