This class is a convenience to create custom visitors without defining all methods. This class provides default implementations that do nothing.
169170171172173174175176177178179
checkUpperTriangular(new QRDecompositionImpl(matrix).getR()); } private void checkUpperTriangular(RealMatrix m) { m.walkInOptimizedOrder(new DefaultRealMatrixPreservingVisitor() { @Override public void visit(int row, int column, double value) { if (column < row) { assertEquals(0.0, value, entryTolerance); }
205206207208209210211212213214215
checkTrapezoidal(new QRDecompositionImpl(matrix).getH()); } private void checkTrapezoidal(RealMatrix m) { m.walkInOptimizedOrder(new DefaultRealMatrixPreservingVisitor() { @Override public void visit(int row, int column, double value) { if (column > row) { assertEquals(0.0, value, entryTolerance); }