elements_to_i() Instance Public methods
elements_to_r() Instance Public methods
eql?(other) Instance Public methods
hash() Instance Public methods Return a hash-code for the vector.
inner_product(v) Instance Public methods Returns the inner product of this vector with the other. Vector[4,7].inner_product Vector[10,1] => 47
inspect() Instance Public methods Overrides Object#inspect
magnitude() Instance Public methods Returns the modulus (Pythagorean distance) of the vector. Vector[5,8,2].r => 9.643650761 r norm
map() Instance Public methods Alias for: collect
map2(v) Instance Public methods Like #collect2, but returns a Vector instead of an Array.
norm() Instance Public methods Alias for: magnitude
Page 1850 of 11844