MatFDColoringSetParameters

Sets the parameters for the sparse approximation of a Jacobian matrix using finite differences.

Synopsis

int MatFDColoringSetParameters(MatFDColoring matfd,double error,double umin)
Collective on MatFDColoring

The Jacobian is estimated with the differencing approximation

       J(u)_{:,i} = [J(u+h*dx_{i}) - J(u)]/h where
       h = error_rel*u[i]                    if  u[i] > umin
         = error_rel*umin                    else
       dx_{i} = (0, ... 1, .... 0)

Input Parameters

coloring - the coloring context
error_rel - relative error
umin - minimum allowable u-value

Keywords

Mat, finite differences, coloring, set, parameters

See Also

MatFDColoringCreate()

Location: src/mat/interface/fdmatrix.c
Matrix Index
Table of Contents