# MatLRCGetMats
Returns the constituents of an LRC matrix 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatLRCGetMats(Mat N, Mat *A, Mat *U, Vec *c, Mat *V)
```
Collective on N


## Input Parameter

- ***N -*** matrix of type `MATLRC`



## Output Parameters

- ***A -*** the (sparse) matrix
- ***U -*** first dense rectangular (tall and skinny) matrix
- ***c -*** a sequential vector containing the diagonal of C
- ***V -*** second dense rectangular (tall and skinny) matrix



## Note
The returned matrices need not be destroyed by the caller.




## See Also
 `MATLRC`, `MatCreateLRC()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/lrc/lrc.c.html#MatLRCGetMats">src/mat/impls/lrc/lrc.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/lrc/lrc.c.html#MatLRCGetMats_LRC">MatLRCGetMats_LRC in src/mat/impls/lrc/lrc.c</A><BR>


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


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