[petsc-users] MatAij -> MatDense

Harshad Sahasrabudhe hsahasra at purdue.edu
Wed Oct 16 19:50:57 CDT 2013


Hi,

Is there any way to convert a sparse matrix to a dense matrix? I have an almost full Aij matrix, which I would like to convert to MatDense and offload it to a GPU.

MatConvert(*mat, MATDENSE, MAT_INITIAL_MATRIX, temp);

mat is of type MATAIJ.

I get the error

No support for this operation for this object type

Thanks!
Harshad



More information about the petsc-users mailing list