Flowdock
method

eigensystem

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Matrix
eigensystem() public

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
Show source
Register or log in to add new notes.