Built-in vs. user-defined functions

(In the case of sum, all you need is @simd to match the Base.sum performance. But even the @simd decoration is a needless complication in an introductory course.)

6 Likes