I suspect the main reason for the loop rather than map is simply to avoid the 
need to allocate a temporary. Since loops are fast in Julia, there is no 
downside to working element-by-element.

--Tim

On Monday, August 04, 2014 02:30:00 PM Michael Grant wrote:
> And *another* correction: the proper replacement for the promote_type loop
> is
> 
>     T = promote_type(map(typeof,X)...)
> 
> 
> Note the eliipsis. I apologize for the rapid-fire posts.

Reply via email to