List of usage examples for org.apache.commons.math3.linear HessenbergTransformer getH
public RealMatrix getH()
From source file:org.pmad.gmm.SchurTransformer.java
/** * Build the transformation to Schur form of a general real matrix. * * @param matrix matrix to transform/*from ww w .j a va 2 s . co m*/ * @throws NonSquareMatrixException if the matrix is not square */ public SchurTransformer(final RealMatrix matrix) { if (!matrix.isSquare()) { throw new NonSquareMatrixException(matrix.getRowDimension(), matrix.getColumnDimension()); } HessenbergTransformer transformer = new HessenbergTransformer(matrix); matrixT = transformer.getH().getData(); matrixP = transformer.getP().getData(); cachedT = null; cachedP = null; cachedPt = null; // transform matrix transform(); }