[petsc-users] zero out a sub matrix

Matthew Knepley knepley at gmail.com
Mon Aug 16 09:59:01 CDT 2010


On Mon, Aug 16, 2010 at 2:54 PM, SUN Chun <Chun.SUN at 3ds.com> wrote:

>  Hi Petsc Dev,
>
>
>
> Is there an efficient way to zero out a sub-matrix in the whole matrix? I
> can get it from MatGetSubMatrix easily. Is there a way to put it back
> without looping over the non-zeros?
>

There is no easier way than MatSetValues currently.

   Matt


>
>
> Thanks,
>
> Chun
>
> This email and any attachments are intended solely for the use of the
> individual or entity to whom it is addressed and may be confidential and/or
> privileged.
>
> If you are not one of the named recipients or have received this email in
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this
> email and all attachments,
>
> (iii) Dassault Systemes does not accept or assume any liability or
> responsibility for any use of or reliance on this email.
>
> For other languages, Click Here<http://www.3ds.com/terms/email-disclaimer>
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100816/21a8be47/attachment.htm>


More information about the petsc-users mailing list