[petsc-users] MatView and complex matrices
Torquil Macdonald Sørensen
torquil at gmail.com
Tue Apr 1 12:58:38 CDT 2014
On 01/04/14 16:41, Jed Brown wrote:
> Torquil Macdonald Sørensen <torquil at gmail.com> writes:
>
>> Hi!
>>
>> Using Petsc 3.4.4, compiled to support complex numbers, I'm getting a
>> completely white figure when plotting a matrix with purely imaginary
>> elements, using MatView(mat, PETSC_VIEWER_DRAW_WORLD). So I cannot see the
>> nonzero structure from the plot.
>>
>> For real matrices (still using the complex-enabled Petsc), I'm getting red
>> and blue points corresponding to positive and negative elements.
>>
>> Is it possible to get Petsc to show the nonzero elements of a complex
>> matrix, by checking the absolute values of each element?
> If we use the absolute value, how would we distinguish positive and
> negative values?
>
> The complex version could make two plots.
Yes, that would be very useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140401/0f1c9f09/attachment.pgp>
More information about the petsc-users
mailing list