PetscImaginaryPart#
Returns the imaginary part of a PetscScalar
Synopsis#
#include <petscmath.h>
PetscReal PetscImaginaryPart(PetscScalar v)
Not Collective
Input Parameter#
v - value to find the imaginary part of
Note#
If PETSc was configured for real numbers then this always returns the value 0
See Also#
PetscScalar, PetscRealPart(), PetscMax(), PetscClipInterval(), PetscAbsInt(), PetscAbsReal(), PetscSqr()
Level#
beginner
Location#
Examples#
src/sys/tests/ex14.c
src/dm/tutorials/ex15.c
src/ksp/ksp/tutorials/ex11.c
src/ksp/ksp/tutorials/ex90.c
src/vec/vec/utils/tagger/tutorials/ex1.c
src/ksp/ksp/tests/ex26.c
src/mat/tests/ex19.c
src/mat/tests/ex261.c
src/mat/tests/ex271.c
src/vec/vec/tests/ex27.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages