Skip to content

Commit

Permalink
Vectorisation.m: Sort arguments of kadd and kmul
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Mar 17, 2014
1 parent 642d222 commit 29ff9ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/CodeGen/Vectorisation.m
Expand Up @@ -275,6 +275,9 @@

(* expr = undoSomeVect[expr]; *)

expr = expr /. {
x:(kmul|kadd)[a_,b_] /; !OrderedQ[x] :> Sort[x]};

Return[expr]]];

DefFn[VectorisationMacros[] :=
Expand Down

0 comments on commit 29ff9ad

Please sign in to comment.