Method: CsrMatrix::Decompositions#eigenvalue
- Defined in:
- lib/csrmatrix/decompositions.rb
#eigenvalue ⇒ Object
16 17 18 19 20 21 22 |
# 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 |