Search in sources :

Example 1 with DenseMatrix

use of jeigen.DenseMatrix in project Java-Matrix-Benchmark by lessthanoptimal.

the class JeigenAlgorithmFactory method convertToRowMajor.

@Override
public RowMajorMatrix convertToRowMajor(BenchmarkMatrix orig) {
    if (orig == null)
        return null;
    DenseMatrix A = orig.getOriginal();
    RowMajorMatrix ret = new RowMajorMatrix(orig.numRows(), orig.numCols());
    System.arraycopy(A.getValues(), 0, ret.data, 0, ret.data.length);
    return ret;
}
Also used : RowMajorMatrix(jmbench.matrix.RowMajorMatrix) DenseMatrix(jeigen.DenseMatrix)

Aggregations

DenseMatrix (jeigen.DenseMatrix)1 RowMajorMatrix (jmbench.matrix.RowMajorMatrix)1