diff options
| author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 06:01:59 +0000 |
|---|---|---|
| committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 06:01:59 +0000 |
| commit | 88a5c7a81ca7484b62d2cd85fc06e0d9cde86f0d (patch) | |
| tree | c78001282b5b80514bdd7490f50968250464fa9f | |
| parent | 8622d4bade22e5a2402182fbbc042c9913ded629 (diff) | |
* lib/matrix.rb: Fix typos in doc and indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | lib/matrix.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index 8c4ea07bcc..632b5fe266 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -53,7 +53,6 @@ end # * <tt> Matrix.columns(columns) </tt> # * <tt> Matrix.diagonal(*values) </tt> # * <tt> Matrix.scalar(n, value) </tt> -# * <tt> Matrix.scalar(n, value) </tt> # * <tt> Matrix.identity(n) </tt> # * <tt> Matrix.unit(n) </tt> # * <tt> Matrix.I(n) </tt> @@ -125,11 +124,12 @@ class Matrix # # Creates a matrix where +rows+ is an array of arrays, each of which is a row - # to the matrix. If the optional argument +copy+ is false, use the given + # of the matrix. If the optional argument +copy+ is false, use the given # arrays as the internal structure of the matrix without copying. # Matrix.rows([[25, 93], [-1, 66]]) # => 25 93 # -1 66 + # def Matrix.rows(rows, copy = true) new(:init_rows, rows, copy) end @@ -140,7 +140,6 @@ class Matrix # => 25 -1 # 93 66 # - # def Matrix.columns(columns) rows = (0 ... columns[0].size).collect {|i| (0 ... columns.size).collect {|j| @@ -1232,6 +1231,5 @@ class Vector end end - # Documentation comments: # - Matrix#coerce and Vector#coerce need to be documented |
