/src/main/java/net/finmath/functions/LinearAlgebra.java
return solver.solve( new Array2DRowRealMatrix( vector) ) .getSolver( ) ;
return solver.solve ( new Array2DRowRealMatrix ( vector ) ) .getColumn ( 0 ) ;
return org.jblas.Solve.pinv(new org.jblas.DoubleMatrix(matrix)).toArray2(); } } public static double[] solveLinearEquationSymmetric(final double[][] matrix, final double[] vector) { if(isSolverUseApacheCommonsMath) { final DecompositionSolver solver = new LUDecomposition(new Array2DRowRealMatrix(matrix)).getSolver(); <extra_id_0> } else { return org.jblas.Solve.solveSymmetric(new org.jblas.DoubleMatrix(matrix), new org.jblas.DoubleMatrix(vector)).data; cern.colt.matrix.linalg.Algebra linearAlgebra = new cern.colt.matrix.linalg.Algebra(); double[] x = linearAlgebra.solve(new DenseDoubleMatrix2D(A), linearAlgebra.transpose(new DenseDoubleMatrix2D(new double[][] { b }))).viewColumn(0).toArray(); return x;