You can use [] after a if a[]<0 works also Paul
W dniu piątek, 15 maja 2015 23:14:43 UTC+2 użytkownik Lytu napisał: > > When i do: > M=rand(5,5) > a=M[:,1]' * M[:,1] > if a<0 > println("Less than 0") > else > println("more") > end > > I have an error: " isless has no method matching > isless(::Array{Float64,2}, ::Int 32) in < at operators.jl:32 > > Can anyone tell me please how to do this? Thank you >