Module: Matrix2DFloatAlgebra

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

Instance Method Summary collapse

Instance Method Details

#qrObject


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




287
288
289
290
291
292
293
# File 'lib/colt/matrix/matrix2D_floating_algebra.rb', line 287

def qr
  result = @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