:orphan: # PCHYPRESetAlphaPoissonMatrix Set vector Poisson matrix for `PCHYPRE` of type ams ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCHYPRESetAlphaPoissonMatrix(PC pc, Mat A) ``` Collective ## Input Parameters - ***pc -*** the preconditioning context - ***A -*** the matrix ## Note A should be obtained by discretizing the vector valued Poisson problem with linear finite elements ## Developer Note This automatically converts the matrix to `MATHYPRE` if it is not already of that type If this is only for `PCHYPRE` type of ams it should be called `PCHYPREAMSSetAlphaPoissonMatrix()` ## See Also `PCHYPRE`, `PCHYPRESetDiscreteGradient()`, `PCHYPRESetDiscreteCurl()`, `PCHYPRESetBetaPoissonMatrix()` ## Level intermediate ## Location src/ksp/pc/impls/hypre/hypre.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/hypre/hypre.c) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)