Hello

I'm testing the best way to do a grid like, I tried the 2 following 
methods: 

tic()
k1   = repmat(kx,1,nx)
k1v = vec(k1)'
k1m  = repmat(k1v,nb,1)
toc()
# 0.0256

tic()
ka = repeat(kx,outer=[nx,nb])'
toc()
# 0.477

I dont understand why the second way with the "one line repeat" is 20 times 
slower than the repeat/vec/repeat ? 

thanks in advance

best 

Antony

Reply via email to