/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardt.java
alphaElement += weights[pathIndex].get( pathIndex) * derivativeCurrent[i][pathIndex].get( pathIndex) * derivativeCurrent[j][pathIndex].get( pathIndex) ;
alphaElement += weights[valueIndex].get ( pathIndex ) * derivativeCurrent[i][valueIndex].get ( pathIndex ) * derivativeCurrent[j][valueIndex].get ( pathIndex ) ;
boolean hessianInvalid = true; while (hessianInvalid) { for (int i = 0; i < parameterCurrent.length; i++) { for (int j = i; j < parameterCurrent.length; j++) { double alphaElement = 0.0; for (int valueIndex = 0; valueIndex < valueCurrent.length; valueIndex++) { <extra_id_0> } if (i == j) { if (alphaElement == 0.0) { alphaElement = 1.0; } else { alphaElement *= 1 + lambda[pathIndex];