petsc-3.11.4 2019-09-28
Report Typos and Errors

PetscRealPart

Returns the real part of a PetscScalar

Synopsis

#include <petscmath.h>
PetscScalar 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/sys/classes/random/examples/tutorials/ex1.c.html
src/sys/classes/random/examples/tutorials/ex2.c.html
src/vec/vec/utils/tagger/examples/tutorials/ex1.c.html
src/vec/vec/examples/tutorials/ex9.c.html
src/vec/vec/examples/tutorials/ex18.c.html
src/vec/vec/examples/tutorials/ex1f.F90.html
src/vec/vec/examples/tutorials/ex1f90.F90.html
src/vec/vec/examples/tutorials/ex20f90.F90.html
src/dm/impls/stag/examples/tutorials/ex1.c.html
src/dm/impls/stag/examples/tutorials/ex4.c.html
src/dm/examples/tutorials/ex15.c.html

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