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

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

Introduction

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

Prototype

public RealMatrix getQT() 

Source Link

Document

Returns the transpose of the matrix Q of the decomposition.

Usage

From source file:org.eclipse.dataset.LinearAlgebra.java

/**
 * Calculate QR decomposition A = Q R//from www .  j  a  v  a 2s.  c o  m
 * @param a
 * @return array of Q and R
 */
public static Dataset[] calcQRDecomposition(Dataset a) {
    QRDecomposition qrd = new QRDecomposition(createRealMatrix(a));
    return new Dataset[] { createDataset(qrd.getQT()).getTransposedView(), createDataset(qrd.getR()) };
}