/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
for ( short parameterIndex = 0; parameterIndex < parameterCurrent.length; parameterIndex++) {
for ( int parameterIndex = 0; parameterIndex < parameterCurrent.length; parameterIndex++ ) {
else { final FutureTask<RandomVariable[]> valueFutureTask = new FutureTask<>(worker); valueFutureTask.run(); valueFutures.add(parameterIndex, valueFutureTask); } } <extra_id_0> try { derivatives[parameterIndex] = valueFutures.get(parameterIndex).get(); } catch (final InterruptedException | ExecutionException e) { throw new SolverException(e); }