# TaoBRGNSetDictionaryMatrix
bind the dictionary matrix from user application context to gn->D, for compressed sensing (with least-squares problem) 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoBRGNSetDictionaryMatrix(Tao tao, Mat dict)
```

## Input Parameters

- ***tao  -*** the Tao context
- ***dict -*** the user specified dictionary matrix.  We allow to set a null dictionary, which means identity matrix by default




## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/leastsquares/impls/brgn/brgn.c.html#TaoBRGNSetDictionaryMatrix">src/tao/leastsquares/impls/brgn/brgn.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/leastsquares/tutorials/cs1.c.html">src/tao/leastsquares/tutorials/cs1.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/leastsquares/tutorials/tomography.c.html">src/tao/leastsquares/tutorials/tomography.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/leastsquares/impls/brgn/brgn.c)


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