Torquil Macdonald Sørensen <[email protected]> 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.

Attachment: pgpxZlrzCKdt1.pgp
Description: PGP signature

Reply via email to