[petsc-users] Question about handling matrix

김성익 ksi2443 at gmail.com
Wed Feb 1 22:24:15 CST 2023


Both small and large matrix are sparse matrix.
I will try following comments.

Thanks,
Hyung Kim

2023년 2월 1일 (수) 오후 11:30, Jed Brown <jed at jedbrown.org>님이 작성:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230202/647655f1/attachment-0001.html>


More information about the petsc-users mailing list