summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-23 05:32:46 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-23 05:32:46 +0000
commit0de2d84af82935ba01ba1d3328c9fdcf287bf3e1 (patch)
treed1b58d756f4bebf7f4fb9ab8a8ad1b8cf300ad5e /lib/matrix.rb
parentd514cd3ca0dedfd62e86698e53b4dc01dff75ed2 (diff)
Clean warnings: unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 8e6b08c..3fda08b 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -834,7 +834,6 @@ class Matrix
a = to_a
last_column = column_size - 1
last_row = row_size - 1
- rank = 0
pivot_row = 0
previous_pivot = 1
0.upto(last_column) do |k|
@@ -1237,7 +1236,7 @@ class Vector
# Vector[7, 4, ...]
#
def Vector.[](*array)
- new convert_to_array(array, copy = false)
+ new convert_to_array(array, false)
end
#
@@ -1532,6 +1531,6 @@ class Vector
# Overrides Object#inspect
#
def inspect
- str = "Vector"+@elements.inspect
+ "Vector" + @elements.inspect
end
end