# KSPHPDDMGetDeflationMat#

Gets the deflation space computed by Krylov methods with recycling or NULL if KSPSolve() has not been called yet. This space is viewed as a set of vectors stored in a MATDENSE (column major). It is the responsibility of the user to free the returned Mat.

## Synopsis#

#include "petscksp.h"
PetscErrorCode KSPHPDDMGetDeflationMat(KSP ksp, Mat *U)


## Input Parameter#

ksp

iterative context

## Output Parameter#

U

deflation space generated during KSPSolve()

KSPCreate(), KSPType, KSPHPDDMSetDeflationMat()

intermediate

## Location#

src/ksp/ksp/impls/hpddm/hpddm.cxx

Edit on GitLab