On Tuesday, February 03, 2015 08:15:40 AM Yuuki Soho wrote: > In general don't hesitate to add type annotation to your functions, it > often helps to prevent types problems (e.g. function > test_1(μ::Float64,Δσ::Float64,σ::Float64) ).
The cost is making your functions less general. Thanks to SIMD you can often get a 2x speedup by using Float32 instead of Float64; that alone is often a reason to keep the functions agnostic about their input types. --Tim
