1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/matrix.rb: Clean up extra whitespace in output documentation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-01-26 03:04:11 +00:00
parent 1624996883
commit 68bf801c39
2 changed files with 97 additions and 93 deletions

View file

@ -1,3 +1,7 @@
Thu Jan 26 11:03:37 2012 Eric Hodel <drbrain@segment7.net>
* lib/matrix.rb: Clean up extra whitespace in output documentation.
Thu Jan 26 03:24:02 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Jan 26 03:24:02 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/io/console/console.c (io_getch): default delegating method * ext/io/console/console.c (io_getch): default delegating method

View file

@ -32,93 +32,93 @@ end
# == Method Catalogue # == Method Catalogue
# #
# To create a matrix: # To create a matrix:
# * <tt> Matrix[*rows] </tt> # * Matrix[*rows]
# * <tt> Matrix.[](*rows) </tt> # * Matrix.[](*rows)
# * <tt> Matrix.rows(rows, copy = true) </tt> # * Matrix.rows(rows, copy = true)
# * <tt> Matrix.columns(columns) </tt> # * Matrix.columns(columns)
# * <tt> Matrix.build(row_size, column_size, &block) </tt> # * Matrix.build(row_size, column_size, &block)
# * <tt> Matrix.diagonal(*values) </tt> # * Matrix.diagonal(*values)
# * <tt> Matrix.scalar(n, value) </tt> # * Matrix.scalar(n, value)
# * <tt> Matrix.identity(n) </tt> # * Matrix.identity(n)
# * <tt> Matrix.unit(n) </tt> # * Matrix.unit(n)
# * <tt> Matrix.I(n) </tt> # * Matrix.I(n)
# * <tt> Matrix.zero(n) </tt> # * Matrix.zero(n)
# * <tt> Matrix.row_vector(row) </tt> # * Matrix.row_vector(row)
# * <tt> Matrix.column_vector(column) </tt> # * Matrix.column_vector(column)
# #
# To access Matrix elements/columns/rows/submatrices/properties: # To access Matrix elements/columns/rows/submatrices/properties:
# * <tt> [](i, j) </tt> # * #[](i, j)
# * <tt> #row_size </tt> # * #row_size
# * <tt> #column_size </tt> # * #column_size
# * <tt> #row(i) </tt> # * #row(i)
# * <tt> #column(j) </tt> # * #column(j)
# * <tt> #collect </tt> # * #collect
# * <tt> #map </tt> # * #map
# * <tt> #each </tt> # * #each
# * <tt> #each_with_index </tt> # * #each_with_index
# * <tt> #find_index </tt> # * #find_index
# * <tt> #minor(*param) </tt> # * #minor(*param)
# #
# Properties of a matrix: # Properties of a matrix:
# * <tt> #diagonal? </tt> # * #diagonal?
# * <tt> #empty? </tt> # * #empty?
# * <tt> #hermitian? </tt> # * #hermitian?
# * <tt> #lower_triangular? </tt> # * #lower_triangular?
# * <tt> #normal? </tt> # * #normal?
# * <tt> #orthogonal? </tt> # * #orthogonal?
# * <tt> #permutation? </tt> # * #permutation?
# * <tt> #real? </tt> # * #real?
# * <tt> #regular? </tt> # * #regular?
# * <tt> #singular? </tt> # * #singular?
# * <tt> #square? </tt> # * #square?
# * <tt> #symmetric? </tt> # * #symmetric?
# * <tt> #unitary? </tt> # * #unitary?
# * <tt> #upper_triangular? </tt> # * #upper_triangular?
# * <tt> #zero? </tt> # * #zero?
# #
# Matrix arithmetic: # Matrix arithmetic:
# * <tt> *(m) </tt> # * #*(m)
# * <tt> +(m) </tt> # * #+(m)
# * <tt> -(m) </tt> # * #-(m)
# * <tt> #/(m) </tt> # * #/(m)
# * <tt> #inverse </tt> # * #inverse
# * <tt> #inv </tt> # * #inv
# * <tt> ** </tt> # * #**
# #
# Matrix functions: # Matrix functions:
# * <tt> #determinant </tt> # * #determinant
# * <tt> #det </tt> # * #det
# * <tt> #rank </tt> # * #rank
# * <tt> #round </tt> # * #round
# * <tt> #trace </tt> # * #trace
# * <tt> #tr </tt> # * #tr
# * <tt> #transpose </tt> # * #transpose
# * <tt> #t </tt> # * #t
# #
# Matrix decompositions: # Matrix decompositions:
# * <tt> #eigen </tt> # * #eigen
# * <tt> #eigensystem </tt> # * #eigensystem
# * <tt> #lup </tt> # * #lup
# * <tt> #lup_decomposition </tt> # * #lup_decomposition
# #
# Complex arithmetic: # Complex arithmetic:
# * <tt> conj </tt> # * conj
# * <tt> conjugate </tt> # * conjugate
# * <tt> imag </tt> # * imag
# * <tt> imaginary </tt> # * imaginary
# * <tt> real </tt> # * real
# * <tt> rect </tt> # * rect
# * <tt> rectangular </tt> # * rectangular
# #
# Conversion to other data types: # Conversion to other data types:
# * <tt> #coerce(other) </tt> # * #coerce(other)
# * <tt> #row_vectors </tt> # * #row_vectors
# * <tt> #column_vectors </tt> # * #column_vectors
# * <tt> #to_a </tt> # * #to_a
# #
# String representations: # String representations:
# * <tt> #to_s </tt> # * #to_s
# * <tt> #inspect </tt> # * #inspect
# #
class Matrix class Matrix
include Enumerable include Enumerable
@ -1500,40 +1500,40 @@ end
# == Method Catalogue # == Method Catalogue
# #
# To create a Vector: # To create a Vector:
# * <tt> Vector.[](*array) </tt> # * Vector.[](*array)
# * <tt> Vector.elements(array, copy = true) </tt> # * Vector.elements(array, copy = true)
# #
# To access elements: # To access elements:
# * <tt> [](i) </tt> # * #[](i)
# #
# To enumerate the elements: # To enumerate the elements:
# * <tt> #each2(v) </tt> # * #each2(v)
# * <tt> #collect2(v) </tt> # * #collect2(v)
# #
# Vector arithmetic: # Vector arithmetic:
# * <tt> *(x) "is matrix or number" </tt> # * #*(x) "is matrix or number"
# * <tt> +(v) </tt> # * #+(v)
# * <tt> -(v) </tt> # * #-(v)
# #
# Vector functions: # Vector functions:
# * <tt> #inner_product(v) </tt> # * #inner_product(v)
# * <tt> #collect </tt> # * #collect
# * <tt> #magnitude </tt> # * #magnitude
# * <tt> #map </tt> # * #map
# * <tt> #map2(v) </tt> # * #map2(v)
# * <tt> #norm </tt> # * #norm
# * <tt> #normalize </tt> # * #normalize
# * <tt> #r </tt> # * #r
# * <tt> #size </tt> # * #size
# #
# Conversion to other data types: # Conversion to other data types:
# * <tt> #covector </tt> # * #covector
# * <tt> #to_a </tt> # * #to_a
# * <tt> #coerce(other) </tt> # * #coerce(other)
# #
# String representations: # String representations:
# * <tt> #to_s </tt> # * #to_s
# * <tt> #inspect </tt> # * #inspect
# #
class Vector class Vector
include ExceptionForMatrix include ExceptionForMatrix