/src/main/java/net/finmath/functions/LinearAlgebra.java
final DecompositionSolver solver = new SingularValueDecomposition ( matrix ) .getSolver ( ) ;
return org.jblas.Solve.solve(new org.jblas.DoubleMatrix(matrixA), new org.jblas.DoubleMatrix(b)).data; } } public static double[] solveLinearEquationSVD(final double[][] matrixA, final double[] b) { if(isSolverUseApacheCommonsMath) { final Array2DRowRealMatrix matrix = new Array2DRowRealMatrix(matrixA); <extra_id_0> return solver.solve(new Array2DRowRealMatrix(b)).getColumn(0); } else { return org.jblas.Solve.solve(new org.jblas.DoubleMatrix(matrixA), new org.jblas.DoubleMatrix(b)).data; } }