PetscRealPart#

Returns the real part of a PetscScalar

Synopsis#

#include <petscmath.h>
PetscReal PetscRealPart(PetscScalar v)

Not Collective

Input Parameter#

  • v - value to find the real part of

See Also#

PetscScalar, PetscImaginaryPart(), PetscMax(), PetscClipInterval(), PetscAbsInt(), PetscAbsReal(), PetscSqr()

Level#

beginner

Location#

include/petscmath.h

Examples#

src/dm/field/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex6.c
src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/impls/stag/tutorials/ex6.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex2.c
src/dm/tutorials/ex25.c
src/dm/tutorials/swarm_ex1.c
src/dm/tutorials/swarm_ex3.c
src/ksp/ksp/tutorials/ex11.c


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages