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