[Bug:trunk] Matrix#compare_by_row_vectors does not receive array of Vector

e\$B1sF#\$G\$9!#e(B

Matrix#compare_by_row_vectors e\$B\$,!"\$=\$NL>A0\$KH?\$7\$F!"e(BVector
e\$B\$NG[Ns\$re(B
e\$BM?\$([email protected]\$7\$/Hf3S\$7\$F\$/\$l\$^\$;\$s!#e(B

require “matrix”
m = Matrix[[1, 2], [3, 4]]
a = [Vector[1, 2], Vector[3, 4]]
p m.compare_by_row_vectors(a) #=> false

e\$BG[Ns\$NG[Ns\$J\$i\$A\$c\$s\$HF0\$-\$^\$9!#\$3\$l\$O0U?^E*\$G\$7\$g\$&\$+!#e(B

p m.compare_by_row_vectors([[1, 2], [3, 4]]) #=> true

e\$B0U?^E*\$G\$J\$1\$l\$P!"0J2<\$N%Q%C%A\$O\$I\$&\$G\$7\$g\$&\$+!#e(B

— a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -427,7 +428,7 @@ class Matrix
return false unless @rows.size == rows.size

`````` @rows.size.times do |i|
``````
• `````` return false unless @rows[i].send(comparison, rows[i])
``````
• `````` return false unless @rows[i].send(comparison,
``````

Matrix.convert_to_array(rows[i]))
end
true
end

e\$B%A%1%C%He(B #2651 e\$B\$,99?7\$5\$l\$^\$7\$?!#e(B (by Marc-Andre L.)

e\$B%+%F%4%je(B libe\$B\$K%;%C%He(B
e\$B%9%F!<%?%9e(B Opene\$B\$+\$ie(BClosede\$B\$KJQ99e(B
e\$BC4Ev<Te(B Marc-Andre L.e\$B\$K%;%C%He(B

Matrix#compare_by_row_vectors has been removed

http://redmine.ruby-lang.org/issues/show/2651

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.