diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-08-10 05:41:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-08-10 05:41:28 +0000 |
commit | e3e0fede44721372b6bcd62eb20f199dfc647076 (patch) | |
tree | dd43fc1480362bd8beb6e65d3b0261b52dabeeb4 /lib/matrix.rb | |
parent | 2562004338bc2694a7d8da75f4effcb9aa889641 (diff) |
1.1c2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r-- | lib/matrix.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index 14b4d4779f..99f44857a3 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1,8 +1,8 @@ # # matrix.rb - # $Release Version: 1.0$ -# $Revision: 1.5 $ -# $Date: 1998/07/14 14:35:18 $ +# $Revision: 1.6 $ +# $Date: 1998/07/31 03:39:49 $ # Original Version from Smalltalk-80 version # on July 23, 1985 at 8:37:17 am # by Keiju ISHITSUKA @@ -179,7 +179,7 @@ module ExceptionForMatrix end class Matrix - @RCS_ID='-$Id: matrix.rb,v 1.5 1998/07/14 14:35:18 keiju Exp keiju $-' + @RCS_ID='-$Id: matrix.rb,v 1.6 1998/07/31 03:39:49 keiju Exp keiju $-' include ExceptionForMatrix @@ -361,7 +361,7 @@ class Matrix other.compare_by_row_vectors(@rows) end - alias eqn? == + alias eql? == def compare_by_row_vectors(rows) return FALSE unless @rows.size == rows.size @@ -515,7 +515,7 @@ class Matrix end for i in 0 .. size - continue if i == k + next if i == k q = a[i][k] / akk a[i][k] = 0 @@ -620,7 +620,7 @@ class Matrix break end end while a[i][k] == 0 - continue if nothing + next if nothing a[i], a[k] = a[k], a[i] akk = a[k][k] end |