ruby-changes:35628
From: ayumin <ko1@a...>
Date: Thu, 25 Sep 2014 07:54:24 +0900 (JST)
Subject: [ruby-changes:35628] ayumin:r47710 (trunk): * lib/matrix.rb: Fix docs. Patched by Ben Woodall. [GH-726]
ayumin 2014-09-25 07:54:10 +0900 (Thu, 25 Sep 2014) New Revision: 47710 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47710 Log: * lib/matrix.rb: Fix docs. Patched by Ben Woodall. [GH-726] Modified files: trunk/ChangeLog trunk/lib/matrix.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47709) +++ ChangeLog (revision 47710) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Sep 25 07:51:07 2014 Ayumu AIZAWA <ayumu.aizawa@g...> + + * lib/matrix.rb: Fix docs. Patched by Ben Woodall. [GH-726] + Wed Sep 24 19:04:04 2014 Martin Duerst <duerst@i...> * enc/unicode/data: New directory for downloaded Unicode Index: lib/matrix.rb =================================================================== --- lib/matrix.rb (revision 47709) +++ lib/matrix.rb (revision 47710) @@ -641,7 +641,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L641 #++ # - # Returns +true+ is this is a diagonal matrix. + # Returns +true+ if this is a diagonal matrix. # Raises an error if matrix is not square. # def diagonal? @@ -658,7 +658,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L658 end # - # Returns +true+ is this is an hermitian matrix. + # Returns +true+ if this is an hermitian matrix. # Raises an error if matrix is not square. # def hermitian? @@ -669,14 +669,14 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L669 end # - # Returns +true+ is this is a lower triangular matrix. + # Returns +true+ if this is a lower triangular matrix. # def lower_triangular? each(:strict_upper).all?(&:zero?) end # - # Returns +true+ is this is a normal matrix. + # Returns +true+ if this is a normal matrix. # Raises an error if matrix is not square. # def normal? @@ -694,7 +694,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L694 end # - # Returns +true+ is this is an orthogonal matrix + # Returns +true+ if this is an orthogonal matrix # Raises an error if matrix is not square. # def orthogonal? @@ -712,7 +712,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L712 end # - # Returns +true+ is this is a permutation matrix + # Returns +true+ if this is a permutation matrix # Raises an error if matrix is not square. # def permutation? @@ -748,21 +748,21 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L748 end # - # Returns +true+ is this is a singular matrix. + # Returns +true+ if this is a singular matrix. # def singular? determinant == 0 end # - # Returns +true+ is this is a square matrix. + # Returns +true+ if this is a square matrix. # def square? column_count == row_count end # - # Returns +true+ is this is a symmetric matrix. + # Returns +true+ if this is a symmetric matrix. # Raises an error if matrix is not square. # def symmetric? @@ -774,7 +774,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L774 end # - # Returns +true+ is this is a unitary matrix + # Returns +true+ if this is a unitary matrix # Raises an error if matrix is not square. # def unitary? @@ -792,14 +792,14 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L792 end # - # Returns +true+ is this is an upper triangular matrix. + # Returns +true+ if this is an upper triangular matrix. # def upper_triangular? each(:strict_lower).all?(&:zero?) end # - # Returns +true+ is this is a matrix with only zero elements + # Returns +true+ if this is a matrix with only zero elements # def zero? all?(&:zero?) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/