Inherits object.
Approximates the jacobian for a cmf solver
J[i,j] = (dxdt(S_i,t)[j]-dxdt(S,t)[j])/delta
S is the state vector
S_i equals S, except for S_i[i]=S[i]+delta
delta is the finite difference to approximate the Jacobian.
delta should be a small number, but big enough to avoid floating point errors.
1e-6 to 1e-9 should be nice values
Usage to show the jacobian:
# Allocate memory for the jacobian
jac = Jacobian(solver,delta)
# Calculate the Jacobian
J = jac()
# Show the Jacobian
imshow(jac(),interpolation='nearest')