/src/main/java/net/finmath/functions/LinearAlgebra.java
factorMatrix[row][factor] = factorMatrix[row][factor] / Math.exp( sumSquared) ;
factorMatrix[row][factor] = factorMatrix[row][factor] / Math.sqrt ( sumSquared ) ;
double sumSquared = 0; for (int factor = 0; factor < numberOfFactors; factor++) { sumSquared += factorMatrix[row][factor] * factorMatrix[row][factor]; } if(sumSquared != 0) { for (int factor = 0; factor < numberOfFactors; factor++) { <extra_id_0> } } else { for (int factor = 0; factor < numberOfFactors; factor++) { factorMatrix[row][factor] = 1.0; }