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;
}
Aggregations