[petsc-users] MatMult doesn't give the correct result

Longmin RAN longmin.ran at gmail.com
Wed Feb 15 04:43:35 CST 2012


Sorry, the result is indeed correct. Please just forget my precedent mail,
and this one too.

On Wed, Feb 15, 2012 at 11:22 AM, Longmin RAN <longmin.ran at gmail.com> wrote:

> Dear all,
>
> I tried to use MatMult on a 2*2 matrix but could not get the right answer.
> With MatView I saw the Matrix was correctly defined as :
>      row 0: (0, 0.707107)
>      row 1: (1, 0.707107)
>
> The vector to be multiplied is
>      0
>      -0.0141421
>
> But MatMult gave the result vector as
>      0
>     -0.01
>
> Has anyone a clue to the problem? Thank you for you help in advance.
>
>
> Cheers,
>
> Longmin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120215/67391eb4/attachment.htm>


More information about the petsc-users mailing list