It must be parsing as if i == (j - 1.0). Try
[ i == j ? -1.0 : 0.0 for i  = 1:4, j = 1:4 ]

Reply via email to