Examples of Matrix


Examples of no.uib.cipr.matrix.Matrix

        }
    }

    public void testMatrixRank1() {
        if (A.isSquare()) {
            Matrix C = Matrices.synchronizedMatrix(Matrices.random(A.numRows(),
                    A.numColumns()));
            double[][] Cd = Matrices.getArray(C);
            double alpha = Math.random();

            A = A.rank1(alpha, C);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        }
    }

    public void testMatrixTransRank1Dense() {
        if (A.isSquare()) {
            Matrix C = Matrices.random(A.numRows(), A.numColumns());
            double[][] Cd = Matrices.getArray(C);
            double alpha = Math.random();

            A = A.transRank1(alpha, C);
            transRank1(Ad, alpha, Cd);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        }
    }

    public void testMatrixTransRank1() {
        if (A.isSquare()) {
            Matrix C = Matrices.synchronizedMatrix(Matrices.random(A.numRows(),
                    A.numColumns()));
            double[][] Cd = Matrices.getArray(C);
            double alpha = Math.random();

            A = A.transRank1(alpha, C);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        }
    }

    public void testMatrixMultDense() {
        int m = A.numRows(), k = A.numColumns(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.random(k, n), C = Matrices.random(m, n);
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.mult(alpha, B, C);
        Cd = mult(Ad, alpha, Bd, Cd);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        assertEquals(Cd, C);
    }

    public void testMatrixMult() {
        int m = A.numRows(), k = A.numColumns(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.synchronizedMatrix(Matrices.random(k, n)), C = Matrices
                .synchronizedMatrix(Matrices.random(m, n));
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.mult(alpha, B, C);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        assertEquals(Cd, C);
    }

    public void testMatrixTransAmultDense() {
        int m = A.numColumns(), k = A.numRows(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.random(k, n), C = Matrices.random(m, n);
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.transAmult(alpha, B, C);
        Cd = transAmult(Ad, alpha, Bd, Cd);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        assertEquals(Cd, C);
    }

    public void testMatrixTransAmult() {
        int m = A.numColumns(), k = A.numRows(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.synchronizedMatrix(Matrices.random(k, n)), C = Matrices
                .synchronizedMatrix(Matrices.random(m, n));
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.transAmult(alpha, B, C);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        assertEquals(Cd, C);
    }

    public void testMatrixTransABmultDense() {
        int m = A.numColumns(), k = A.numRows(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.random(n, k), C = Matrices.random(m, n);
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.transABmult(alpha, B, C);
        Cd = transABmult(Ad, alpha, Bd, Cd);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        assertEquals(Cd, C);
    }

    public void testMatrixTransABmult() {
        int m = A.numColumns(), k = A.numRows(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.synchronizedMatrix(Matrices.random(n, k)), C = Matrices
                .synchronizedMatrix(Matrices.random(m, n));
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.transABmult(alpha, B, C);
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix

        assertEquals(Cd, C);
    }

    public void testMatrixTransBmultDense() {
        int m = A.numRows(), k = A.numColumns(), n = Utilities.getInt(1, max);
        Matrix B = Matrices.random(n, k), C = Matrices.random(m, n);
        double[][] Bd = Matrices.getArray(B), Cd = Matrices.getArray(C);
        double alpha = Math.random();

        C = A.transBmult(alpha, B, C);
        Cd = transBmult(Ad, alpha, Bd, Cd);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.