JuliaLang/julia — Issue #243: im*Matrix is 10x slower than real scalar*Matrix
Author: ViralBShah
Created: 2011-10-29 22:00:42+00:00
State: open

Multiplying a matrix with im is 10x slower than multiplying it by a real number.

julia> @time im*ones(2000,2000);
elapsed time: 1.40052605 seconds

julia> @time 2*ones(2000,2000);
elapsed time: 0.13868904 seconds