summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 18:01:45 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 18:01:45 +0000
commit39aad8fa8364d12b5888c8ae24f3b47b7d06f99c (patch)
tree7a58ab32285b43ca1c4e3a3c777f9b9eaf03b2eb /lib
parent99179d63228ecf6301448f3f56a4a88a5ec2cc00 (diff)
* lib/matrix.rb: removed compare_by*, inspect_org, cf [ruby-core:26268]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/matrix.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 7afc7d5978..25245fd15c 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -424,15 +424,6 @@ class Matrix
rows.eql? other.rows
end
- def compare_by_row_vectors(rows, comparison = :==)
- return false unless @rows.size == rows.size
-
- @rows.size.times do |i|
- return false unless @rows[i].send(comparison, rows[i])
- end
- true
- end
-
#
# Returns a clone of the matrix, so that the contents of each do not reference
# identical objects.
@@ -923,13 +914,11 @@ class Matrix
"Matrix.empty(#{row_size}, #{column_size})"
else
"Matrix[" + @rows.collect{|row|
- "[" + row.collect{|e| e.to_s}.join(", ") + "]"
+ "[" + row.collect{|e| e.to_s}.join(", ") + "]"
}.join(", ")+"]"
end
end
- alias_method :inspect_org, :inspect
-
#
# Overrides Object#inspect
#
@@ -1193,10 +1182,6 @@ class Vector
@elements.eql? other.elements
end
- def compare_by(elements, comparison = :==)
- @elements.send(comparison, elements)
- end
-
#
# Return a copy of the vector.
#