Searched defs:solve (Results 1 - 25 of 65) sorted by relevance

123

/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
H A DDecompositionSolver.java23 * Interface handling decomposition algorithms that can solve A × X = B.
25 * matrices from which they can solve A × X = B in least squares sense: they find X
46 double[] solve(final double[] b) method in interface:DecompositionSolver
57 RealVector solve(final RealVector b) method in interface:DecompositionSolver
68 RealMatrix solve(final RealMatrix b) method in interface:DecompositionSolver
H A DFieldDecompositionSolver.java24 * Interface handling decomposition algorithms that can solve A × X = B.
26 * matrices from which they can solve A × X = B in least squares sense: they find X
48 T[] solve(final T[] b) method in interface:FieldDecompositionSolver
59 FieldVector<T> solve(final FieldVector<T> b) method in interface:FieldDecompositionSolver
70 FieldMatrix<T> solve(final FieldMatrix<T> b) method in interface:FieldDecompositionSolver
H A DCholeskyDecompositionImpl.java211 public double[] solve(double[] b) method in class:CholeskyDecompositionImpl.Solver
247 public RealVector solve(RealVector b) method in class:CholeskyDecompositionImpl.Solver
250 return solve((ArrayRealVector) b);
293 public ArrayRealVector solve(ArrayRealVector b) method in class:CholeskyDecompositionImpl.Solver
295 return new ArrayRealVector(solve(b.getDataRef()), false);
299 public RealMatrix solve(RealMatrix b) method in class:CholeskyDecompositionImpl.Solver
351 return solve(MatrixUtils.createRealIdentityMatrix(lTData.length));
H A DFieldLUDecompositionImpl.java261 public T[] solve(T[] b) method in class:FieldLUDecompositionImpl.Solver
304 public FieldVector<T> solve(FieldVector<T> b) method in class:FieldLUDecompositionImpl.Solver
307 return solve((ArrayFieldVector<T>) b);
357 public ArrayFieldVector<T> solve(ArrayFieldVector<T> b) method in class:FieldLUDecompositionImpl.Solver
359 return new ArrayFieldVector<T>(solve(b.getDataRef()), false);
363 public FieldMatrix<T> solve(FieldMatrix<T> b) method in class:FieldLUDecompositionImpl.Solver
429 return solve(identity);
H A DLUDecompositionImpl.java261 public double[] solve(double[] b) method in class:LUDecompositionImpl.Solver
302 public RealVector solve(RealVector b) method in class:LUDecompositionImpl.Solver
305 return solve((ArrayRealVector) b);
353 public ArrayRealVector solve(ArrayRealVector b) method in class:LUDecompositionImpl.Solver
355 return new ArrayRealVector(solve(b.getDataRef()), false);
359 public RealMatrix solve(RealMatrix b) method in class:LUDecompositionImpl.Solver
418 return solve(MatrixUtils.createRealIdentityMatrix(pivot.length));
H A DQRDecompositionImpl.java288 public double[] solve(double[] b) method in class:QRDecompositionImpl.Solver
305 // apply Householder transforms to solve Q.y = b
321 // solve triangular system R.x = y
337 public RealVector solve(RealVector b) method in class:QRDecompositionImpl.Solver
340 return solve((ArrayRealVector) b);
342 return new ArrayRealVector(solve(b.getData()), false);
353 public ArrayRealVector solve(ArrayRealVector b) method in class:QRDecompositionImpl.Solver
355 return new ArrayRealVector(solve(b.getDataRef()), false);
359 public RealMatrix solve(RealMatrix b) method in class:QRDecompositionImpl.Solver
388 // apply Householder transforms to solve
[all...]
H A DEigenDecompositionImpl.java286 public double[] solve(final double[] b) method in class:EigenDecompositionImpl.Solver
328 public RealVector solve(final RealVector b) method in class:EigenDecompositionImpl.Solver
370 public RealMatrix solve(final RealMatrix b) method in class:EigenDecompositionImpl.Solver
H A DSingularValueDecompositionImpl.java323 public double[] solve(final double[] b) throws IllegalArgumentException { method in class:SingularValueDecompositionImpl.Solver
339 public RealVector solve(final RealVector b) method in class:SingularValueDecompositionImpl.Solver
356 public RealMatrix solve(final RealMatrix b) method in class:SingularValueDecompositionImpl.Solver
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
H A DBisectionSolver.java37 * @param f function to solve.
38 * @deprecated as of 2.0 the function to solve is passed as an argument
39 * to the {@link #solve(UnivariateRealFunction, double, double)} or
40 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
58 public double solve(double min, double max, double initial) method in class:BisectionSolver
60 return solve(f, min, max);
65 public double solve(double min, double max) method in class:BisectionSolver
67 return solve(f, min, max);
75 public double solve(final UnivariateRealFunction f, double min, double max, double initial) method in class:BisectionSolver
77 return solve(
82 public double solve(int maxEval, final UnivariateRealFunction f, double min, double max, double initial) method in class:BisectionSolver
89 public double solve(int maxEval, final UnivariateRealFunction f, double min, double max) method in class:BisectionSolver
100 public double solve(final UnivariateRealFunction f, double min, double max) method in class:BisectionSolver
[all...]
H A DMullerSolver.java33 * restrict ourselves to real functions. Methods solve() and solve2() find
44 * @param f function to solve
45 * @deprecated as of 2.0 the function to solve is passed as an argument
46 * to the {@link #solve(UnivariateRealFunction, double, double)} or
47 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
66 public double solve(final double min, final double max) method in class:MullerSolver
68 return solve(f, min, max);
73 public double solve(final double min, final double max, final double initial) method in class:MullerSolver
75 return solve(f, min, max, initial);
83 * @param f the function to solve
95 public double solve(int maxEval, final UnivariateRealFunction f, method in class:MullerSolver
119 public double solve(final UnivariateRealFunction f, method in class:MullerSolver
163 public double solve(int maxEval, final UnivariateRealFunction f, method in class:MullerSolver
196 public double solve(final UnivariateRealFunction f, method in class:MullerSolver
[all...]
H A DNewtonSolver.java40 * @param f function to solve.
41 * @deprecated as of 2.0 the function to solve is passed as an argument
42 * to the {@link #solve(UnivariateRealFunction, double, double)} or
43 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
62 public double solve(final double min, final double max) method in class:NewtonSolver
64 return solve(f, min, max);
69 public double solve(final double min, final double max, final double startValue) method in class:NewtonSolver
71 return solve(f, min, max, startValue);
77 * @param f the function to solve
87 public double solve(in method in class:NewtonSolver
107 public double solve(final UnivariateRealFunction f, method in class:NewtonSolver
128 public double solve(int maxEval, final UnivariateRealFunction f, method in class:NewtonSolver
150 public double solve(final UnivariateRealFunction f, method in class:NewtonSolver
[all...]
H A DRiddersSolver.java43 * @param f function to solve
44 * @deprecated as of 2.0 the function to solve is passed as an argument
45 * to the {@link #solve(UnivariateRealFunction, double, double)} or
46 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
65 public double solve(final double min, final double max) method in class:RiddersSolver
67 return solve(f, min, max);
72 public double solve(final double min, final double max, final double initial) method in class:RiddersSolver
74 return solve(f, min, max, initial);
82 * @param f the function to solve
93 public double solve(in method in class:RiddersSolver
116 public double solve(final UnivariateRealFunction f, method in class:RiddersSolver
149 public double solve(int maxEval, final UnivariateRealFunction f, method in class:RiddersSolver
171 public double solve(final UnivariateRealFunction f, method in class:RiddersSolver
[all...]
H A DSecantSolver.java48 * @param f function to solve.
49 * @deprecated as of 2.0 the function to solve is passed as an argument
50 * to the {@link #solve(UnivariateRealFunction, double, double)} or
51 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
70 public double solve(final double min, final double max) method in class:SecantSolver
72 return solve(f, min, max);
77 public double solve(final double min, final double max, final double initial) method in class:SecantSolver
79 return solve(f, min, max, initial);
85 * @param f the function to solve
97 public double solve(in method in class:SecantSolver
119 public double solve(final UnivariateRealFunction f, method in class:SecantSolver
138 public double solve(int maxEval, final UnivariateRealFunction f, method in class:SecantSolver
158 public double solve(final UnivariateRealFunction f, method in class:SecantSolver
[all...]
H A DLaguerreSolver.java36 * approximation and be able to solve all roots from that point.</p>
43 /** polynomial function to solve.
52 * @param f function to solve
54 * @deprecated as of 2.0 the function to solve is passed as an argument
55 * to the {@link #solve(UnivariateRealFunction, double, double)} or
56 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
92 public double solve(final double min, final double max) method in class:LaguerreSolver
94 return solve(p, min, max);
99 public double solve(final double min, final double max, final double initial) method in class:LaguerreSolver
101 return solve(
121 public double solve(int maxEval, final UnivariateRealFunction f, method in class:LaguerreSolver
145 public double solve(final UnivariateRealFunction f, method in class:LaguerreSolver
190 public double solve(int maxEval, final UnivariateRealFunction f, method in class:LaguerreSolver
217 public double solve(final UnivariateRealFunction f, method in class:LaguerreSolver
361 public Complex solve(Complex coefficients[], Complex initial) throws method in class:LaguerreSolver
[all...]
H A DUnivariateRealSolver.java75 * @deprecated replaced by {@link #solve(UnivariateRealFunction, double, double)}
79 double solve(double min, double max) throws ConvergenceException, FunctionEvaluationException; method in interface:UnivariateRealSolver
87 * @param f the function to solve.
100 double solve(UnivariateRealFunction f, double min, double max) method in interface:UnivariateRealSolver
118 * @deprecated replaced by {@link #solve(UnivariateRealFunction, double, double, double)}
122 double solve(double min, double max, double startValue) method in interface:UnivariateRealSolver
131 * @param f the function to solve.
145 double solve(UnivariateRealFunction f, double min, double max, double startValue) method in interface:UnivariateRealSolver
H A DBrentSolver.java54 * @param f function to solve.
55 * @deprecated as of 2.0 the function to solve is passed as an argument
56 * to the {@link #solve(UnivariateRealFunction, double, double)} or
57 * {@link UnivariateRealSolverImpl#solve(UnivariateRealFunction, double, double, double)}
97 public double solve(double min, double max) method in class:BrentSolver
99 return solve(f, min, max);
104 public double solve(double min, double max, double initial) method in class:BrentSolver
106 return solve(f, min, max, initial);
116 * @param f function to solve.
129 public double solve(fina method in class:BrentSolver
196 public double solve(int maxEval, final UnivariateRealFunction f, method in class:BrentSolver
221 public double solve(final UnivariateRealFunction f, method in class:BrentSolver
281 public double solve(int maxEval, final UnivariateRealFunction f, method in class:BrentSolver
303 private double solve(final UnivariateRealFunction f, method in class:BrentSolver
[all...]
H A DUnivariateRealSolverUtils.java54 public static double solve(UnivariateRealFunction f, double x0, double x1) method in class:UnivariateRealSolverUtils
57 return LazyHolder.FACTORY.newDefaultSolver().solve(f, x0, x1);
75 public static double solve(UnivariateRealFunction f, double x0, double x1, method in class:UnivariateRealSolverUtils
82 return solver.solve(f, x0, x1);
/external/python/cpython2/Demo/scripts/
H A Dqueens.py28 def solve(self, x=0): # Recursive solver member in class:Queens
35 self.solve(x+1)
81 q.solve()
/external/python/cpython3/Tools/demo/
H A Dqueens.py28 def solve(self, x=0): # Recursive solver member in class:Queens
35 self.solve(x+1)
81 q.solve()
/external/eigen/Eigen/src/Core/
H A DSolverBase.h31 * x = dec.solve(b); // solve A * x = b
32 * x = dec.transpose().solve(b); // solve A^T * x = b
33 * x = dec.adjoint().solve(b); // solve A' * x = b
75 solve(const MatrixBase<Rhs>& b) const function in class:Eigen::SolverBase
77 eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
85 * A typical usage is to solve for the transposed problem A^T x = b:
86 * \code x = dec.transpose().solve(
[all...]
H A DSolve.h25 * This class represents an expression of A.solve(B)
123 EIGEN_DEVICE_FUNC explicit evaluator(const SolveType& solve) argument
124 : m_result(solve.rows(), solve.cols())
127 solve.dec()._solve_impl(solve.rhs(), m_result);
134 // Specialization for "dst = dec.solve(rhs)"
151 // Specialization for "dst = dec.transpose().solve(rhs)"
167 // Specialization for "dst = dec.adjoint().solve(rhs)"
/external/eigen/Eigen/src/IterativeLinearSolvers/
H A DBasicPreconditioners.h18 * This class allows to approximately solve for A.x = b problems assuming A is a diagonal matrix.
95 solve(const MatrixBase<Rhs>& b) const function in class:Eigen::DiagonalPreconditioner
99 && "DiagonalPreconditioner::solve(): invalid number of rows of the right hand side matrix b");
113 * This class allows to approximately solve for A' A x = A' b problems assuming A' A is a diagonal matrix.
219 inline const Rhs& solve(const Rhs& b) const { return b; } function in class:Eigen::IdentityPreconditioner
H A DSolveWithGuess.h25 * This class represents an expression of A.solve(B)
81 evaluator(const SolveType& solve) argument
82 : m_result(solve.rows(), solve.cols())
85 m_result = solve.guess();
86 solve.dec()._solve_with_guess_impl(solve.rhs(), m_result);
/external/eigen/Eigen/src/SparseCore/
H A DSparseSolverBase.h18 * Helper functions to solve with a sparse right-hand-side and result.
39 tmpX.leftCols(actualCols) = dec.solve(tmp.leftCols(actualCols));
53 dest_dense = dec.solve(rhs_dense);
88 solve(const MatrixBase<Rhs>& b) const function in class:Eigen::SparseSolverBase
91 eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
101 solve(const SparseMatrixBase<Rhs>& b) const function in class:Eigen::SparseSolverBase
104 eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
/external/python/cpython2/Lib/test/
H A Dtest_generators.py1116 def solve(self): member in class:Queens
1141 # solve() will set up succs[i] to be a list of square #i's
1303 def solve(self): member in class:Knights
1371 >>> for row2col in q.solve():
1422 >>> for x in k.solve():

Completed in 3712 milliseconds

123