summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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.
#