= private = protected
r()
Returns the modulus (Pythagorean distance) of the vector.
Vector[5,8,2].r => 9.643650761
# File lib/matrix.rb, line 1219 def r v = 0 for e in @elements v += e*e end return Math.sqrt(v) end