BiDiagonalTransformer { boolean isUpperBiDiagonal() { return householderVectors.length >= householderVectors[0].length; } BiDiagonalTransformer(RealMatrix matrix); RealMatrix getU(); RealMatrix getB(); RealMatrix getV();  }
@Test public void testUpperOrLower() { Assert.assertTrue(new BiDiagonalTransformer(MatrixUtils.createRealMatrix(testSquare)).isUpperBiDiagonal()); Assert.assertTrue(new BiDiagonalTransformer(MatrixUtils.createRealMatrix(testNonSquare)).isUpperBiDiagonal()); Assert.assertFalse(new BiDiagonalTransformer(MatrixUtils.createRealMatrix(testNonSquare).transpose()).isUpperBiDiagonal()); }