Project

General

Profile

Feature #10352 » give_alias_for_vector_product.patch

gogotanaka (Kazuki Tanaka), 10/09/2014 07:44 PM

View differences:

lib/matrix.rb
}
p
end
alias :dot :inner_product
#
# Returns the cross product of this vector with the other.
......
v[0]*@elements[2] - v[2]*@elements[0],
v[1]*@elements[0] - v[0]*@elements[1] ]
end
alias :cross :cross_product
#
# Like Array#collect.
(2-2/2)