HessenbergTransformer { public RealMatrix getPT() { if (cachedPt == null) { cachedPt = getP().transpose(); } return cachedPt; } HessenbergTransformer(final RealMatrix matrix); RealMatrix getP(); RealMatrix getPT(); RealMatrix getH();  }
@Test public void testPTOrthogonal() { checkOrthogonal(new HessenbergTransformer(MatrixUtils.createRealMatrix(testSquare5)).getPT()); checkOrthogonal(new HessenbergTransformer(MatrixUtils.createRealMatrix(testSquare3)).getPT()); }