For a square matrix with an all-positive diagonal, elements are limited to 6 significant digits by rounding the diagonal and shrinking off diagonal elements toward zero. The off-diagonals are reduced by 3 percent as necessary until the determinant is positive.
matrix with only positive diagonal elements
extra arguments, ignored
Leonid Gibiansky, modified by Tim Bergsma
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.