Issue #7208 has been updated by marcandre (Marc-Andre Lafortune).

Category set to lib
Assignee set to marcandre (Marc-Andre Lafortune)


----------------------------------------
Bug #7208: 茲?膣???堺????ゃ???????よ???????絲?????? Matrix#eigensystem ?????????ゃ??罩c????????
https://bugs.ruby-lang.org/issues/7208#change-31472

Author: pypypy567 (py _)
Status: Open
Priority: Normal
Assignee: marcandre (Marc-Andre Lafortune)
Category: lib
Target version: 
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) [i386-mswin32_100]


=begin
网?荀?:
Matrix[[0, 1], [-1, 0]] ???????????絲乗??????純???????堺????ゃ???膣???違??????茵??????絲?????? Matrix#eigensystem ???罩c?????腟???????菴????????????????с?????

?????????:
  irb(main):001:0> RUBY_DESCRIPTION
  => "ruby 1.9.3p286 (2012-10-12 revision 37165) [i386-mswin32_100]"
  irb(main):002:0> require 'matrix'
  => true
  irb(main):003:0> m = Matrix[[0, 1], [-1, 0]]
  => Matrix[[0, 1], [-1, 0]]
  irb(main):004:0> v, d, v_inv = m.eigensystem
  ExceptionForMatrix::ErrNotRegular: Not Regular Matrix
          from C:/ruby193/lib/ruby/1.9.1/matrix.rb:930:in `block in inverse_from'
          from C:/ruby193/lib/ruby/1.9.1/matrix.rb:920:in `upto'
          from C:/ruby193/lib/ruby/1.9.1/matrix.rb:920:in `inverse_from'
          from C:/ruby193/lib/ruby/1.9.1/matrix.rb:912:in `inverse'
          from C:/ruby193/lib/ruby/1.9.1/matrix/eigenvalue_decomposition.rb:51:in
  `eigenvector_matrix_inv'
          from C:/ruby193/lib/ruby/1.9.1/matrix/eigenvalue_decomposition.rb:80:in
  `to_ary'
          from (irb):4
          from C:/ruby193/bin/irb.bat:19:in `<main>'

茯??:
絎?茵???? m ???絲乗???????純??? m.eigensystem ??篁ヤ????????????茹c??筝????障?????
(Float ??ц??膊?????????????цゅ勲??????膈?????????????????????????????障?????)
  v * d * v_inv == m
???????????堺????ゃ???膣???違????????翫??????荐???????????????????????????????????с?????
????????????????????????????絲上????????????????障???????????????????????????с????????????с?????

????若??堺?????菴純?c??帥????????? Matrix::EigenvalueDecomposition#build_eigenvectors ???筝?罩c??ゃ??菴??????????????????????????障????????
??純?若?鴻?潟?若??: http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/32355/entry/lib/matrix/eigenvalue_decomposition.rb#L85
??潟?若?????潟?<?潟????????? URL ??茯????茯????с?帥??????罩g?岩??腟???帥??障?c????????????c???????с????????羞私???????????????????????????????????罩c???????????????????????障????????
荅???????????? ruby ??荅峨???????????????????????吾???????????帥????????緇?????????????????菴??????障????????
=end



-- 
http://bugs.ruby-lang.org/