TriDiagonalTransformer { public RealMatrix getQ() { if (cachedQ == null) { cachedQ = getQT().transpose(); } return cachedQ; } TriDiagonalTransformer(RealMatrix matrix); RealMatrix getQ(); RealMatrix getQT(); RealMatrix getT();  }
@Test public void testQOrthogonal() { checkOrthogonal(new TriDiagonalTransformer(MatrixUtils.createRealMatrix(testSquare5)).getQ()); checkOrthogonal(new TriDiagonalTransformer(MatrixUtils.createRealMatrix(testSquare3)).getQ()); }