eigensystem

eigensystem()
Instance Public methods

Returns the Eigensystem of the matrix; see EigenvalueDecomposition.

m = Matrix[[1, 2], [3, 4]]
v, d, v_inv = m.eigensystem
d.diagonal? # => true
v.inv == v_inv # => true
(v * d * v_inv).round(5) == m # => true

eigen

doc_ruby_on_rails
2015-04-18 07:24:23
Comments
Leave a Comment

Please login to continue.