/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardtAD.java
derivatives[parameterIndex][valueIndex] = gradient.get( ( ( RandomVariableDifferentiable) parameters[parameterIndex]) .getGradient( ) ) ;
derivatives[parameterIndex][valueIndex] = gradient.get ( ( ( RandomVariableDifferentiable ) parameters[parameterIndex] ) .getID ( ) ) ;
isRandomVariableDifferentiable = (values[valueIndex] instanceof RandomVariableDifferentiable) && isRandomVariableDifferentiable; } if(isRandomVariableDifferentiable) { for (int valueIndex = 0; valueIndex < values.length; valueIndex++) { final Map<Long, RandomVariable> gradient = ((RandomVariableDifferentiable)values[valueIndex]).getGradient(); for (int parameterIndex = 0; parameterIndex < parameters.length; parameterIndex++) { <extra_id_0> } } } else { setDerivatives(parameters, derivatives); }