scheinerman / Permutations.jl

Permutations class for Julia.
Other
51 stars 14 forks source link

Reverse order of *(::Permutation, ::Permutation) (#12 ) #13

Closed dlfivefifty closed 6 years ago

dlfivefifty commented 6 years ago

I also added *(P::Permutation, v::AbstractVector).

(We could think about making Permutation <: AbstractMatrix{Int}.)

scheinerman commented 6 years ago

Sorry. Please see my comments under the "Issues" section. We can consider how we transform permutations to matrices, but the definition of * that I gave is the one I'm going to stay with because it acts as function composition.