[petsc-users] MatView and complex matrices
Jed Brown
jed at jedbrown.org
Tue Apr 1 09:41:02 CDT 2014
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140401/212e8c9c/attachment-0001.pgp>
More information about the petsc-users
mailing list