Answer by Mr.Wizard for Strange phenomenon with Outer
I actually get the same timing for all three versions (using v7), but this is almost certainly a matter of packing. You can use Developer`ToPackedArray to convert your sub-arrays, as well as...
View ArticleStrange phenomenon with Outer
Outer[Plus, ##] & @@ Array[{1, 2, 6, 24, 120, 720, 5040, 40320, 362880} &, 6]; // AbsoluteTiming(* {0.979056, Null} *)Outer[Plus, ##] & @@ Array[Range[9]! &, 6]; // AbsoluteTiming(*...
View Article
More Pages to Explore .....