Examples of CRSByteMatrix


Examples of net.fec.openrq.util.linearalgebra.matrix.sparse.CRSByteMatrix

    @Override
    public ByteMatrix createDiagonalMatrix(byte[] diagonal) {

        final int size = diagonal.length;

        ByteMatrix matrix = new CRSByteMatrix(size, size);
        for (int i = 0; i < size; i++) {
            matrix.set(i, i, diagonal[i]);
        }

        return matrix;
    }
View Full Code Here

Examples of net.fec.openrq.util.linearalgebra.matrix.sparse.CRSByteMatrix

                colInds[i][j] = Serialization.readMatrixColumnIndex(buffer);
                colVals[i][j] = Serialization.readMatrixValue(buffer);
            }
        }

        return new CRSByteMatrix(rows, cols, colVals, colInds, rowCards);
    }
View Full Code Here

Examples of net.fec.openrq.util.linearalgebra.matrix.sparse.CRSByteMatrix

                colInds[i][j] = Serialization.readMatrixColumnIndex(ch);
                colVals[i][j] = Serialization.readMatrixValue(ch);
            }
        }

        return new CRSByteMatrix(rows, cols, colVals, colInds, rowCards);
    }
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.