Not sure if it is desired, but this is a parser issue where you need a `;`
to separate the if clause from the -1 so that it is not read as
[if i == (j -1.0) nothing else 0.0 end for i = 1:4, j = 1:4]
Try something like
*[if i == j; -1.0 else 0.0 end for i = 1:4, j = 1:4]*
kl. 22:25:08 UTC+2 lørdag 27. september 2014 skrev Zenna Tavares følgende:
>
> Is this desired behaviour?
>
> [if i == j -1.0 else 0.0 end for i = 1:4, j = 1:4]
>
> 4x4 Array{Union(Nothing,Float64),2}:
> 0.0 nothing 0.0 0.0
> 0.0 0.0 nothing 0.0
> 0.0 0.0 0.0 nothing
> 0.0 0.0 0.0 0.0
>