Gets the minimum value (in absolute value) of each row of the matrix


#include "petscmat.h" 
PetscErrorCode MatGetRowMinAbs(Mat mat,Vec v,PetscInt idx[])
Logically Collective on Mat

Input Parameters

mat - the matrix

Output Parameter

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

Level: intermediate


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

MatGetDiagonal(), MatCreateSubMatrices(), MatCreateSubMatrix(), MatGetRowMax(), MatGetRowMaxAbs(), MatGetRowMin()