El viernes, 15 de mayo de 2015, 16:14:43 (UTC-5), Lytu escribió:
>
> 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
>
Perhaps quite not you want this time, but 

a .< 0

returns a matrix of the same size as a, with true or false doing the 
comparison of each entry.

David.

 

> Can anyone tell me please how to do this? Thank you
>

Reply via email to