1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/matrix.rb (determinant): fix name error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-01-27 13:49:58 +00:00
parent 69eb602b02
commit a817c0b089
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Jan 27 22:48:40 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/matrix.rb (determinant): fix name error.
Wed Jan 27 22:26:25 2010 Yusuke Endoh <mame@tsg.ne.jp>
* vm_eval.c (rb_backtrace): "circular require" warning was output to

View file

@ -681,8 +681,8 @@ class Matrix
i = (k+1 ... size).find {|ii|
a[ii][k] != 0
}
return 0 if ii.nil?
a[ii], a[k] = a[k], a[ii]
return 0 if i.nil?
a[i], a[k] = a[k], a[i]
akk = a[k][k]
det *= -1
end