summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-20 19:01:44 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-20 19:01:44 +0000
commitdbb35e2f00c1db1ab2c4b11af0b1c80b9eb89e64 (patch)
tree8e6f74fca0d6fa96b591bcd9624882b50146bdf5
parent7d176870a9ce126faaeb68e12fa0aaea999c8a2b (diff)
downloadruby-dbb35e2f00c1db1ab2c4b11af0b1c80b9eb89e64.tar.gz
ruby-dbb35e2f00c1db1ab2c4b11af0b1c80b9eb89e64.tar.xz
ruby-dbb35e2f00c1db1ab2c4b11af0b1c80b9eb89e64.zip
* lib/matrix.rb (transpose, inspect): Bug fix
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/matrix.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 7c546c3a7..d62d1338e 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -147,7 +147,7 @@ class Matrix
# 93 66
#
def Matrix.columns(columns)
- Matrix.rows(columns.transpose, false)
+ Matrix.rows(columns, false).transpose
end
#
@@ -931,7 +931,6 @@ class Matrix
"Matrix#{@rows.inspect}"
end
end
- alias_method :inspect, :to_s
#
# Converts the obj to an Array. If copy is set to true