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

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

Introduction

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

Prototype

RealMatrix getQ();

Source Link

Document

Returns the matrix Q of the decomposition.

Usage

From source file:com.opengamma.analytics.math.linearalgebra.QRDecompositionCommonsResult.java

/**
 * @param qr The result of the QR decomposition, not null
 *//*from   w  ww. j a  va 2 s  .c  o m*/
public QRDecompositionCommonsResult(final QRDecomposition qr) {
    Validate.notNull(qr);
    _h = CommonsMathWrapper.unwrap(qr.getH());
    _q = CommonsMathWrapper.unwrap(qr.getQ());
    _r = CommonsMathWrapper.unwrap(qr.getR());
    _qTranspose = DoubleMatrixUtils.getTranspose(_q);
    _solver = qr.getSolver();
}