Logo Search packages:      
Sourcecode: jblas version File versions  Download package

org::jblas::la::DoubleMatrix::DoubleMatrix ( int  newRows,
int  newColumns,
double...  newData 
) [inline]

Create a new matrix with newRows rows, newColumns columns using newData> as the data. The length of the data is not checked!

Definition at line 294 of file DoubleMatrix.java.

References columns, data, length, and rows.

        rows = newRows;
        columns = newColumns;
        length = rows * columns;

        if (newData != null && newData.length != newRows * newColumns) {
            throw new IllegalArgumentException(
                    "Passed data must match matrix dimensions.");

        data = newData;
    //System.err.printf("%d * %d matrix created\n", rows, columns);

Generated by  Doxygen 1.6.0   Back to index