public Matrix[] qr() { if (getRowCount() >= getColumnCount()) { try { QR qr = QR.factorize(getWrappedObject()); Matrix q = new MTJDenseDoubleMatrix2D(qr.getQ()); Matrix r = new MTJDenseDoubleMatrix2D(qr.getR()); return new Matrix[] { q, r }; } catch (Exception e) { throw new RuntimeException(e); } } else { throw new RuntimeException("only allowed for matrices m>=n"); } }
public Matrix[] qr() { if (getRowCount() >= getColumnCount()) { try { QR qr = QR.factorize(getWrappedObject()); Matrix q = new MTJDenseDoubleMatrix2D(qr.getQ()); Matrix r = new MTJDenseDoubleMatrix2D(qr.getR()); return new Matrix[] { q, r }; } catch (Exception e) { throw new RuntimeException(e); } } else { throw new RuntimeException("only allowed for matrices m>=n"); } }
no.uib.cipr.matrix.QR.factorize(this.internalMatrix); triangularMatrix = decomposition.getR(); sign = 1;
no.uib.cipr.matrix.QR.factorize(this.internalMatrix); triangularMatrix = decomposition.getR(); sign = 1;
no.uib.cipr.matrix.QR.factorize(this.internalMatrix); triangularMatrix = decomposition.getR(); sign = 1;