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