# PetscScalar

PETSc type that represents either a double precision real number or a double precision complex number if the code is compiled with BOPT=g_complex or O_complex

### See Also

PetscReal, PassiveReal, PassiveScalar

Level:beginner
Location: include/petsc.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/vec/examples/tutorials/ex5.c.html
src/vec/examples/tutorials/ex6.c.html
src/vec/examples/tutorials/ex9.c.html
src/vec/examples/tutorials/ex4f90.F.html
src/mat/examples/tutorials/ex2.c.html
src/mat/examples/tutorials/ex3.c.html
src/ksp/examples/tutorials/ex3.c.html
src/ksp/examples/tutorials/ex5.c.html
src/ksp/examples/tutorials/ex9.c.html
src/ksp/examples/tutorials/ex13.c.html
src/ksp/examples/tutorials/ex13f90.F.html