or, possibly A[i] = A[i] * B[i]

(I'm not sure whether @simd automatically translates *= to what it needs)

On Tuesday, 6 October 2015 17:29:04 UTC+1, Christoph Ortner wrote:
>
> a *= b is equivalent to a = a * b, which allocates a temporary variable I 
> think?
>
> Try 
>
> @fastmath @inbounds @simd for i=1:n
> A[i] *= B[i]
> end
>
>
>

Reply via email to