module CsrMatrix::Decompositions
Constants
- C
Public Instance Methods
eigen()
click to toggle source
# File lib/csrmatrix/decompositions.rb, line 7 def eigen() # alias for eigensystem # returns a list in the form {eigenvalues, eigenvectors} is_invariant? self.eigenvalue() end
eigenvalue()
click to toggle source
# File lib/csrmatrix/decompositions.rb, line 16 def eigenvalue() # identifies the eigenvalues of a matrix is_invariant? # post eigenvalues of the matrix m = Matrix.rows(self.decompose) return m.eigensystem().to_a[1].round().to_a end