It seems you're trying to compute a dot product. Try dot(M[:,1], M[:,1]) or norm(M[:,1]). Of course, as a side comment, that quantity can't be negative ;).
- [julia-users] Problem with if else in Julia Lytu
- [julia-users] Re: Problem with if else in Julia Jeff Waller
- [julia-users] Problem with if else in Julia Dominique Orban
- [julia-users] Re: Problem with if else in Julia David P. Sanders
- [julia-users] Re: Problem with if else in Julia paul analyst