vector^2 without a warning?
Publié : mar. mai 28, 2019 10:30 am
I often need to "dot product" a vector with itself. E.g., "(pointB - pointA)^2". But when I do this I see the warning:
Is there a way to get rid of this warning? I know I can do "dot(expr, expr)" instead, but then I have to type the expression twice.Warning, ^ is ambiguous on non square matrices. Use .^ to apply ^ element by element.