[petsc-users] Question about handling matrix

Jed Brown jed at jedbrown.org
Wed Feb 1 08:25:28 CST 2023


Is the small matrix dense? Then you can use MatSetValues. If the small matrix is sparse, you can assemble it with larger dimension (empty rows and columns) and use MatAXPY.

김성익 <ksi2443 at gmail.com> writes:

> Hello,
>
>
> I want to put small matrix to large matrix.
> The schematic of operation is as below.
> [image: image.png]
> Is there any function for put small matrix to large matrix at once?
>
> Thanks,
> Hyung Kim


More information about the petsc-users mailing list