diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-01 15:48:47 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-01 15:48:47 +0000 |
commit | 0eb452d7e57f5eeef1ab7da888f9b9658f02d9b7 (patch) | |
tree | 09c95c2007e16534103b8954c2b4bd1822040e04 | |
parent | 73678acc9a277940a801aee58f9a9da918b14b44 (diff) |
merges r24949 from trunk into ruby_1_9_1.
--
* lib/matrix.rb (determinant): Bug fix where determinant failed on some matrices [ruby-core:23597]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/matrix.rb | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Sep 16 13:39:10 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca> + + * lib/matrix.rb (determinant): Bug fix where determinant failed on + some matrices [ruby-core:23597] + Mon Sep 14 06:42:21 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca> * lib/cgi/cookie.rb (value): Keep CGI::Cookie#value in sync with the diff --git a/lib/matrix.rb b/lib/matrix.rb index c948836fa7..6fbaacb4be 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -683,7 +683,7 @@ class Matrix if (akk = a[k][k]) == 0 i = k loop do - return 0 if (ii += 1) > size + return 0 if (i += 1) > size break unless a[i][k] == 0 end a[i], a[k] = a[k], a[i] @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 332 +#define RUBY_PATCHLEVEL 333 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |