<div dir="ltr"><div>Both small and large matrix are sparse matrix.</div><div>I will try following comments.</div><div><br></div><div>Thanks,</div><div>Hyung Kim</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2023년 2월 1일 (수) 오후 11:30, Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br>
<br>
김성익 <<a href="mailto:ksi2443@gmail.com" target="_blank">ksi2443@gmail.com</a>> writes:<br>
<br>
> Hello,<br>
><br>
><br>
> I want to put small matrix to large matrix.<br>
> The schematic of operation is as below.<br>
> [image: image.png]<br>
> Is there any function for put small matrix to large matrix at once?<br>
><br>
> Thanks,<br>
> Hyung Kim<br>
</blockquote></div></div>