public interface VectorFunction
Modified by: Joseph A. Huwaldt
Modifier and Type | Method and Description |
---|---|
void |
function(int n,
double[] x,
double[] y)
User supplied method that calculates the function y[] = fn(x[]).
|
boolean |
jacobian(int n,
double[] x,
double[][] jac)
User supplied method that calculates the Jacobian of the function.
|
void function(int n, double[] x, double[] y) throws RootException
n
- The number of variables in the x & y arrays.x
- Independent parameters to the function, passed in as input.y
- An existing array that is filled in with the outputs of the functionRootException
boolean jacobian(int n, double[] x, double[][] jac)
n
- The number of rows and columns in the Jacobian.x
- Independent parameters to the function, passed in as input.jac
- The Jacobian array.true
if the Jacobian was computed by this method,
false
if it was not.