Package org.apache.commons.math.linear

Examples of org.apache.commons.math.linear.DefaultRealMatrixPreservingVisitor


        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);
                }
View Full Code Here


        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);
                }
View Full Code Here

TOP

Related Classes of org.apache.commons.math.linear.DefaultRealMatrixPreservingVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.