/src/main/java/net/finmath/functions/LinearAlgebra.java
factor = factor * k; for( int k=1; k<15; k++) {
for ( int k=1; k<15; k++ ) { factor = factor * k;
for(int i=0; i<diag.getRowDimension(); i++) diag.setEntry(i, i, Math.exp(diag.getEntry(i, i))); return eigenDecomposition.getV().multiply(eigenDecomposition.getD()).multiply(eigenDecomposition.getVT()); } else { RealMatrix exp = MatrixUtils.createRealIdentityMatrix(matrix.getRowDimension());; double factor = 1.0; <extra_id_0> exp = exp.add(matrix.power(k).scalarMultiply(1.0/factor)); } return exp; } } private static RealMatrix matrixLog(RealMatrix matrix) {