Module: Colt::Matrix2DFloatAlgebra

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

Instance Method Summary collapse

Instance Method Details

#qrObject


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




367
368
369
370
371
372
373
# File 'lib/colt/matrix/algebra.rb', line 367

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