[petsc-users] MatAij -> MatDense

Jed Brown jedbrown at mcs.anl.gov
Thu Oct 17 00:11:09 CDT 2013


Harshad Sahasrabudhe <hsahasra at purdue.edu> writes:

> 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

Send the ENTIRE error message.  (ALWAYS send the entire error message.)

There is no special code for the conversion, but MatConvert_Basic should
get called.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131017/991251b7/attachment.pgp>


More information about the petsc-users mailing list