From 68bf801c39c439d274844b56e763f27634ee452f Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 26 Jan 2012 03:04:11 +0000 Subject: * 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 --- lib/matrix.rb | 186 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 93 insertions(+), 93 deletions(-) (limited to 'lib/matrix.rb') diff --git a/lib/matrix.rb b/lib/matrix.rb index 7569d68607..6853be8286 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -32,93 +32,93 @@ end # == Method Catalogue # # To create a matrix: -# * Matrix[*rows] -# * Matrix.[](*rows) -# * Matrix.rows(rows, copy = true) -# * Matrix.columns(columns) -# * Matrix.build(row_size, column_size, &block) -# * Matrix.diagonal(*values) -# * Matrix.scalar(n, value) -# * Matrix.identity(n) -# * Matrix.unit(n) -# * Matrix.I(n) -# * Matrix.zero(n) -# * Matrix.row_vector(row) -# * Matrix.column_vector(column) +# * Matrix[*rows] +# * Matrix.[](*rows) +# * Matrix.rows(rows, copy = true) +# * Matrix.columns(columns) +# * Matrix.build(row_size, column_size, &block) +# * Matrix.diagonal(*values) +# * Matrix.scalar(n, value) +# * Matrix.identity(n) +# * Matrix.unit(n) +# * Matrix.I(n) +# * Matrix.zero(n) +# * Matrix.row_vector(row) +# * Matrix.column_vector(column) # # To access Matrix elements/columns/rows/submatrices/properties: -# * [](i, j) -# * #row_size -# * #column_size -# * #row(i) -# * #column(j) -# * #collect -# * #map -# * #each -# * #each_with_index -# * #find_index -# * #minor(*param) +# * #[](i, j) +# * #row_size +# * #column_size +# * #row(i) +# * #column(j) +# * #collect +# * #map +# * #each +# * #each_with_index +# * #find_index +# * #minor(*param) # # Properties of a matrix: -# * #diagonal? -# * #empty? -# * #hermitian? -# * #lower_triangular? -# * #normal? -# * #orthogonal? -# * #permutation? -# * #real? -# * #regular? -# * #singular? -# * #square? -# * #symmetric? -# * #unitary? -# * #upper_triangular? -# * #zero? +# * #diagonal? +# * #empty? +# * #hermitian? +# * #lower_triangular? +# * #normal? +# * #orthogonal? +# * #permutation? +# * #real? +# * #regular? +# * #singular? +# * #square? +# * #symmetric? +# * #unitary? +# * #upper_triangular? +# * #zero? # # Matrix arithmetic: -# * *(m) -# * +(m) -# * -(m) -# * #/(m) -# * #inverse -# * #inv -# * ** +# * #*(m) +# * #+(m) +# * #-(m) +# * #/(m) +# * #inverse +# * #inv +# * #** # # Matrix functions: -# * #determinant -# * #det -# * #rank -# * #round -# * #trace -# * #tr -# * #transpose -# * #t +# * #determinant +# * #det +# * #rank +# * #round +# * #trace +# * #tr +# * #transpose +# * #t # # Matrix decompositions: -# * #eigen -# * #eigensystem -# * #lup -# * #lup_decomposition +# * #eigen +# * #eigensystem +# * #lup +# * #lup_decomposition # # Complex arithmetic: -# * conj -# * conjugate -# * imag -# * imaginary -# * real -# * rect -# * rectangular +# * conj +# * conjugate +# * imag +# * imaginary +# * real +# * rect +# * rectangular # # Conversion to other data types: -# * #coerce(other) -# * #row_vectors -# * #column_vectors -# * #to_a +# * #coerce(other) +# * #row_vectors +# * #column_vectors +# * #to_a # # String representations: -# * #to_s -# * #inspect +# * #to_s +# * #inspect # class Matrix include Enumerable @@ -1500,40 +1500,40 @@ end # == Method Catalogue # # To create a Vector: -# * Vector.[](*array) -# * Vector.elements(array, copy = true) +# * Vector.[](*array) +# * Vector.elements(array, copy = true) # # To access elements: -# * [](i) +# * #[](i) # # To enumerate the elements: -# * #each2(v) -# * #collect2(v) +# * #each2(v) +# * #collect2(v) # # Vector arithmetic: -# * *(x) "is matrix or number" -# * +(v) -# * -(v) +# * #*(x) "is matrix or number" +# * #+(v) +# * #-(v) # # Vector functions: -# * #inner_product(v) -# * #collect -# * #magnitude -# * #map -# * #map2(v) -# * #norm -# * #normalize -# * #r -# * #size +# * #inner_product(v) +# * #collect +# * #magnitude +# * #map +# * #map2(v) +# * #norm +# * #normalize +# * #r +# * #size # # Conversion to other data types: -# * #covector -# * #to_a -# * #coerce(other) +# * #covector +# * #to_a +# * #coerce(other) # # String representations: -# * #to_s -# * #inspect +# * #to_s +# * #inspect # class Vector include ExceptionForMatrix -- cgit v1.2.3