/** * Computes the Jacobian matrix. * * @param params Point at which the Jacobian must be evaluated. * @return the Jacobian at the specified point. */ protected double[][] computeJacobian(final double[] params) { return jacobian.value(params); }
/** {@inheritDoc} */ public RealMatrix computeJacobian(final double[] params) { return new Array2DRowRealMatrix(jacobian.value(params), false); } }
final double[][] jacobian = f.jacobian().value(point);
/** * Computes the Jacobian matrix. * * @param params Point at which the Jacobian must be evaluated. * @return the Jacobian at the specified point. */ protected double[][] computeJacobian(final double[] params) { return jacobian.value(params); }
/** * Computes the Jacobian matrix. * * @param params Point at which the Jacobian must be evaluated. * @return the Jacobian at the specified point. */ protected double[][] computeJacobian(final double[] params) { return jacobian.value(params); }
/** {@inheritDoc} */ public RealMatrix computeJacobian(final double[] params) { return new Array2DRowRealMatrix(jacobian.value(params), false); } }
/** {@inheritDoc} */ public RealMatrix computeJacobian(final double[] params) { return new Array2DRowRealMatrix(jacobian.value(params), false); } }
@Override public double[][] value(double[] point) throws IllegalArgumentException { fixParams(point); // double[][] retVal = new double[xgrid.length][point.length]; for(int i = 0; i < nmol; i++) { double [] tmp = Arrays.copyOfRange(point, i*Params.PARAMS_LENGTH, (i+1)*Params.PARAMS_LENGTH); double [][] J = psf.getNumericJacobianFunction(xgrid, ygrid).value(tmp); for(int j = 0; j < J.length; j++) { for(int k = 0, l = i*Params.PARAMS_LENGTH; k < J[j].length; k++, l++) { retVal[j][l] = J[j][k]; } } } return retVal; } };
final double[][] jacobian = f.jacobian().value(point);
final double[][] jacobian = f.jacobian().value(point);