Project

General

Profile

Feature #10069 » implement_uplus_for_matrix.patch

gogotanaka (Kazuki Tanaka), 07/19/2014 02:07 AM

View differences:

lib/matrix.rb
# * #inverse
# * #inv
# * #**
# * #+@
#
# Matrix functions:
# * #determinant
......
end
end
def +@
self
end
#--
# MATRIX FUNCTIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#++
test/matrix/test_matrix.rb
assert_equal @m1.hash, @m3.hash
end
def test_uplus
assert_equal(@m1, +@m1)
end
def test_rank
[
[[0]],
(1-1/2)