:orphan:
# KSPCGType
Determines what type of `KSPCG` to use 
## Synopsis
```
typedef enum {
  KSP_CG_SYMMETRIC = 0,
  KSP_CG_HERMITIAN = 1
} KSPCGType;
```

## Values
+ `KSP_CG_SYMMETRIC` - the matrix is complex symmetric
- `KSP_CG_HERMITIAN` - the matrix is complex Hermitian




## See Also
 [](ch_ksp), `KSPCG`, `KSP`, `KSPCGSetType()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscksp.h.html#KSPCGType">include/petscksp.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscksp.h)


[Index of all KSP routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
