Example usage for org.apache.commons.math3.linear QRDecomposition getQ

List of usage examples for org.apache.commons.math3.linear QRDecomposition getQ

Introduction

In this page you can find the example usage for org.apache.commons.math3.linear QRDecomposition getQ.

Prototype

public RealMatrix getQ() 

Source Link

Document

Returns the matrix Q of the decomposition.

Usage

From source file:org.ujmp.commonsmath.AbstractCommonsMathDenseDoubleMatrix2D.java

public Matrix[] qr() {
    QRDecomposition qr = new QRDecomposition(matrix);
    Matrix q = CommonsMathDenseDoubleMatrix2DFactory.INSTANCE.dense(qr.getQ());
    Matrix r = CommonsMathDenseDoubleMatrix2DFactory.INSTANCE.dense(qr.getR());
    return new Matrix[] { q, r };
}