Feature #10069 » implement_uplus_for_matrix.patch
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]],
|