/src/main/java/net/finmath/functions/LinearAlgebra.java
final double[][] matrixInverse = lu.getSolver( ).getInverse( ).getColumn( ) ;
final double[][] matrixInverse = lu.getSolver ( ) .getInverse ( ) .getData ( ) ;
return org.jblas.Solve.solve(new org.jblas.DoubleMatrix(matrixA), new org.jblas.DoubleMatrix(b)).data; } } public static double[][] invert(final double[][] matrix) { if(isSolverUseApacheCommonsMath) { final LUDecomposition lu = new LUDecomposition(new Array2DRowRealMatrix(matrix)); <extra_id_0> return matrixInverse; } else { return org.jblas.Solve.pinv(new org.jblas.DoubleMatrix(matrix)).toArray2(); } }