Hey,
In order to delete the diagonal of a matrix, guarded list comprehensions a la python would be the easiest but Julia does not support it yet.
I tried the matlab syntax too:
r = rand(5,5)
r(1:6:end)=[]
reshape(r,5,4)
which does not work with Julia.
As a temporary solution, I found that:
r[eye(5).==0] | v->reshape(v,5,4)
Is there a better solution?
cheers
Mariem