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