Class: NuLin::QR
- Inherits:
-
Object
- Object
- NuLin::QR
- Defined in:
- lib/nulin/qr.rb
Instance Attribute Summary collapse
-
#Q ⇒ Object
readonly
The orthgonal/unitary matrix Q.
-
#Qt ⇒ Object
readonly
The tranposed/adjoint matrix of Q.
-
#R ⇒ Object
readonly
The upper triangular matrix R.
Instance Method Summary collapse
-
#initialize(matrix, options) ⇒ QR
constructor
A new instance of QR.
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, ) @matrix = matrix @typecode = matrix.typecode compute end |
Instance Attribute Details
#Q ⇒ Object (readonly)
The orthgonal/unitary matrix Q
26 27 28 |
# File 'lib/nulin/qr.rb', line 26 def Q @Q end |
#Qt ⇒ Object (readonly)
The tranposed/adjoint matrix of Q
28 29 30 |
# File 'lib/nulin/qr.rb', line 28 def Qt @Qt end |
#R ⇒ Object (readonly)
The upper triangular matrix R
30 31 32 |
# File 'lib/nulin/qr.rb', line 30 def R @R end |