It must be parsing as if i == (j - 1.0). Try [ i == j ? -1.0 : 0.0 for i = 1:4, j = 1:4 ]
- [julia-users] 2D list comprehesion with if giving strange re... Zenna Tavares
- [julia-users] Re: 2D list comprehesion with if giving s... Ivar Nesje
- [julia-users] 2D list comprehesion with if giving stran... Ethan Anderes
