From 39aad8fa8364d12b5888c8ae24f3b47b7d06f99c Mon Sep 17 00:00:00 2001 From: marcandre Date: Thu, 1 Apr 2010 18:01:45 +0000 Subject: * 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 --- lib/matrix.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'lib') 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. # -- cgit v1.2.3