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

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

Introduction

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

Prototype

RealMatrix getR();

Source Link

Document

Returns the matrix R 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  w w . ja 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();
}