:orphan:
# MatGetRowMinAbs
Gets the minimum value (in absolute value) of each row of the matrix 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatGetRowMinAbs(Mat mat, Vec v, PetscInt idx[])
```
Logically Collective


## Input Parameter

- ***mat -*** the matrix



## Output Parameters

- ***v -*** the vector for storing the minimums
- ***idx -*** the indices of the column found for each row (or `NULL` if not needed)





## Notes
if a row is completely empty or has only 0.0 values then the idx[] value for that
row is 0 (the first column).

This code is only implemented for a couple of matrix formats.


## See Also
 [](ch_matrices), `Mat`, `MatGetDiagonal()`, `MatCreateSubMatrices()`, `MatCreateSubMatrix()`, `MatGetRowMax()`, `MatGetRowMaxAbs()`, `MatGetRowMin()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatGetRowMinAbs">src/mat/interface/matrix.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex72.c.html">src/ksp/ksp/tutorials/ex72.c</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/mpi/mpiaij.c.html#MatGetRowMinAbs_MPIAIJ">MatGetRowMinAbs_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/aij.c.html#MatGetRowMinAbs_SeqAIJ">MatGetRowMinAbs_SeqAIJ in src/mat/impls/aij/seq/aij.c</A><BR>


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


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