ruby-changes:13667
From: marcandre <ko1@a...>
Date: Sat, 24 Oct 2009 15:05:18 +0900 (JST)
Subject: [ruby-changes:13667] Ruby:r25452 (trunk): * lib/matrix (transpose): bug fix for Matrix.empty(0,42).t
marcandre 2009-10-24 15:05:10 +0900 (Sat, 24 Oct 2009) New Revision: 25452 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25452 Log: * lib/matrix (transpose): bug fix for Matrix.empty(0,42).t cf [ruby-core:23598] Modified files: trunk/lib/matrix.rb Index: lib/matrix.rb =================================================================== --- lib/matrix.rb (revision 25451) +++ lib/matrix.rb (revision 25452) @@ -858,6 +858,7 @@ # 2 4 6 # def transpose + return Matrix.empty(column_size, 0) if row_size.zero? new_matrix @rows.transpose, row_size end alias t transpose -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/