ruby-changes:15271
From: marcandre <ko1@a...>
Date: Fri, 2 Apr 2010 03:02:11 +0900 (JST)
Subject: [ruby-changes:15271] Ruby:r27155 (trunk): * lib/matrix.rb: removed compare_by*, inspect_org, cf
marcandre 2010-04-02 03:01:45 +0900 (Fri, 02 Apr 2010) New Revision: 27155 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27155 Log: * lib/matrix.rb: removed compare_by*, inspect_org, cf [ruby-core:26268] Modified files: trunk/lib/matrix.rb Index: lib/matrix.rb =================================================================== --- lib/matrix.rb (revision 27154) +++ lib/matrix.rb (revision 27155) @@ -424,15 +424,6 @@ 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 @@ "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 @@ @elements.eql? other.elements end - def compare_by(elements, comparison = :==) - @elements.send(comparison, elements) - end - # # Return a copy of the vector. # -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/