Method: NuLin::ComplexEigenDecomposition#initialize
- Defined in:
- lib/nulin/eigensystem.rb
#initialize(matrix, opts) ⇒ ComplexEigenDecomposition
Returns a new instance of ComplexEigenDecomposition.
159 160 161 162 163 164 165 166 167 |
# File 'lib/nulin/eigensystem.rb', line 159 def initialize(matrix, opts) @matrix = matrix @dim = matrix.shape[0] @use_left = opts.fetch(:use_left, true) @use_right = opts.fetch(:use_right, true) @typecode = matrix.typecode compute end |