APIdock / Ruby
/
Browse About
method

eigensystem

v1_9_3_392 - Show latest stable - 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
# File lib/matrix.rb, line 1187
  def eigensystem
    EigenvalueDecomposition.new(self)
  end

Related methods

  • Instance methods
  • *
  • **
  • +
  • -
  • /
  • ==
  • []
  • clone
  • coerce
  • collect
  • column
  • column_vectors
  • component
  • conj
  • conjugate
  • det
  • det_e
  • determinant
  • determinant_e
  • diagonal?
  • each
  • each_with_index
  • eigen
  • eigensystem
  • element
  • elements_to_f
  • elements_to_i
  • elements_to_r
  • empty?
  • eql?
  • find_index
  • hash
  • hermitian?
  • imag
  • imaginary
  • index
  • inspect
  • inv
  • inverse
  • lower_triangular?
  • lup
  • lup_decomposition
  • map
  • minor
  • normal?
  • orthogonal?
  • permutation?
  • rank
  • rank_e
  • real
  • real?
  • rect
  • rectangular
  • regular?
  • round
  • row
  • row_size
  • row_vectors
  • singular?
  • square?
  • symmetric?
  • t
  • to_a
  • to_s
  • tr
  • trace
  • transpose
  • unitary?
  • upper_triangular?
  • zero?
  • Class methods
  • I
  • []
  • build
  • column_vector
  • columns
  • diagonal
  • empty
  • identity
  • new
  • row_vector
  • rows
  • scalar
  • unit
  • zero
  • Private methods
  • privatenew
  • private[]=
  • privatedeterminant_bareiss
  • privateinverse_from
  • privatenew_matrix
  • privateset_component
  • privateset_element
APIdock API Documentation Browser

© 2026 APIdock