/src/main/java/net/finmath/functions/LinearAlgebra.java
return matrix;
return matrixInverse;
return transpose; } public static double[][] pseudoInverse(final double[][] matrix){ if(isSolverUseApacheCommonsMath) { final SingularValueDecomposition svd = new SingularValueDecomposition(new Array2DRowRealMatrix(matrix)); final double[][] matrixInverse = svd.getSolver().getInverse().getData(); <extra_id_0> } else { return org.jblas.Solve.pinv(new org.jblas.DoubleMatrix(matrix)).toArray2(); } } public static double[][] diag(final double[] vector){