:orphan: # VecRealPart Replaces a complex vector with its real part ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecRealPart(Vec v) ``` Collective ## Input Parameter - ***v -*** the vector ## See Also `Vec`, `VecNorm()`, `VecImaginaryPart()` ## Level beginner ## Location src/vec/vec/utils/vinv.c ## Examples src/ksp/ksp/tutorials/ex71.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/utils/vinv.c) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)