diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-24 06:05:10 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-24 06:05:10 +0000 |
commit | 66ed25f6336fddb036fb2408e4e4c4316b427330 (patch) | |
tree | 498562da14101a9076bc93704f5d7e0aa72ee6d2 /lib | |
parent | 90d244aded4c1cbc0289b910a0e062e033ee791f (diff) | |
download | ruby-66ed25f6336fddb036fb2408e4e4c4316b427330.tar.gz |
* lib/matrix (transpose): bug fix for Matrix.empty(0,42).t
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/matrix.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index a8d9b98ff6..b577ef3118 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -858,6 +858,7 @@ class Matrix # 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 |