mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/matrix.rb (transpose, inspect): Bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
439a1e64d1
commit
86a81951b1
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue