Package net.fec.openrq.util.linearalgebra.matrix.sparse

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


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

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

                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

Related Classes of net.fec.openrq.util.linearalgebra.matrix.sparse.CRSByteMatrix

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.