Module: Colt::Matrix2DDoubleAlgebra

Included in:
DoubleMDMatrix2D
Defined in:
lib/colt/matrix/algebra.rb

Instance Method Summary collapse

Instance Method Details

#qr(economy_size = true) ⇒ Object


Constructs and returns the QR-decomposition of the given matrix.




348
349
350
351
352
# File 'lib/colt/matrix/algebra.rb', line 348

def qr(economy_size = true)
  result = @colt_algebra.qr(@colt_matrix)
  [result.hasFullRank(), MDMatrix.from_colt_matrix(result.getQ(economy_size)),
   MDMatrix.from_colt_matrix(result.getR(economy_size))]
end