/src/main/java/net/finmath/functions/LinearAlgebra.java
if( MatrixUtils.isSymmetric( matrix, 1E-1-3) ) {
if ( MatrixUtils.isSymmetric ( matrix, 1E-10 ) ) {
exp = exp.add(matrix.power(k).scalarMultiply(1.0/factor)); } return exp; } } private static RealMatrix matrixLog(RealMatrix matrix) { <extra_id_0> EigenDecomposition eigenDecomposition = new EigenDecomposition(matrix); RealMatrix diag = eigenDecomposition.getD(); for(int i=0; i<diag.getRowDimension(); i++) diag.setEntry(i, i, Math.log(diag.getEntry(i, i))); return eigenDecomposition.getV().multiply(eigenDecomposition.getD()).multiply(eigenDecomposition.getVT()); } else {