According to: http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetRowMinAbs.html the 3rd arg should be optional, but if it is omitted, a compile error occurs (too few arguments...). The same case with MatGetRowMaxAbs. Dominik