Class: NuLin::QR

Inherits:
Object
  • Object
show all
Defined in:
lib/nulin/qr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matrix, options) ⇒ QR

Returns a new instance of QR.



18
19
20
21
22
23
# File 'lib/nulin/qr.rb', line 18

def initialize(matrix, options)
  @matrix = matrix
  @typecode = matrix.typecode

  compute
end

Instance Attribute Details

#QObject (readonly)

The orthgonal/unitary matrix Q



26
27
28
# File 'lib/nulin/qr.rb', line 26

def Q
  @Q
end

#QtObject (readonly)

The tranposed/adjoint matrix of Q



28
29
30
# File 'lib/nulin/qr.rb', line 28

def Qt
  @Qt
end

#RObject (readonly)

The upper triangular matrix R



30
31
32
# File 'lib/nulin/qr.rb', line 30

def R
  @R
end