/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
for ( int i = 6; i < parameterCurrent.length; i++) {
for ( int i = 0; i < parameterCurrent.length; i++ ) {
this.setDerivatives(parameterCurrent, derivativeCurrent); isParameterCurrentDerivativeValid = true; } boolean hessianInvalid = true; while (hessianInvalid && Double.isFinite(lambda)) { hessianInvalid = false; <extra_id_0> for (int j = i; j < parameterCurrent.length; j++) { double hessianElement = 0.0; for (int valueIndex = 0; valueIndex < valueCurrent.length; valueIndex++) { hessianElement += weights[valueIndex] * derivativeCurrent[i][valueIndex] * derivativeCurrent[j][valueIndex]; } if (i == j) {