/external/eigen/unsupported/doc/examples/ |
PolynomialUtils1.cpp | 11 Eigen::Matrix<double,5,1> polynomial; local 12 roots_to_monicPolynomial( roots, polynomial ); 13 cout << "Polynomial: "; 14 for( int i=0; i<4; ++i ){ cout << polynomial[i] << ".x^" << i << "+ "; } 15 cout << polynomial[4] << ".x^4" << endl; 18 evaluation[i] = poly_eval( polynomial, roots[i] ); } 19 cout << "Evaluation of the polynomial at the roots: " << evaluation.transpose();
|
PolynomialSolver1.cpp | 14 Eigen::Matrix<double,6,1> polynomial; local 15 roots_to_monicPolynomial( roots, polynomial ); 17 PolynomialSolver<double,5> psolve( polynomial ); 31 cout << "Hard case polynomial defined by floats: " << hardCase_polynomial.transpose() << endl; 36 cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl << endl; 47 cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl << endl;
|
/external/eigen/unsupported/Eigen/src/Polynomials/ |
PolynomialUtils.h | 16 * \returns the evaluation of the polynomial at x using Horner algorithm. 18 * \param[in] poly : the vector of coefficients of the polynomial ordered 19 * by degrees i.e. poly[i] is the coefficient of degree i of the polynomial 21 * \param[in] x : the value to evaluate the polynomial at. 37 * \returns the evaluation of the polynomial at x using stabilized Horner algorithm. 39 * \param[in] poly : the vector of coefficients of the polynomial ordered 40 * by degrees i.e. poly[i] is the coefficient of degree i of the polynomial 42 * \param[in] x : the value to evaluate the polynomial at. 64 * \returns a maximum bound for the absolute value of any root of the polynomial. 66 * \param[in] poly : the vector of coefficients of the polynomial ordere [all...] |
PolynomialSolver.h | 18 * \brief Defined to be inherited by polynomial solvers: it provides 54 /** \returns the complex roots of the polynomial */ 58 /** Clear and fills the back insertion sequence with the real roots of the polynomial 302 * \brief A polynomial solver 304 * Computes the complex roots of a real polynomial. 306 * \param _Scalar the scalar type, i.e., the type of the polynomial coefficients 307 * \param _Deg the degree of the polynomial, can be a compile time value or Dynamic. 308 * Notice that the number of polynomial coefficients is _Deg+1. 310 * This class implements a polynomial solver and provides convenient methods such as 316 * WARNING: this polynomial solver is experimental, part of the unsuported Eigen modules [all...] |
/external/ceres-solver/internal/ceres/ |
polynomial_solver.h | 39 // Use the companion matrix eigenvalues to determine the roots of the polynomial 41 // sum_{i=0}^N polynomial(i) x^{N-i}. 44 // Failure indicates that the polynomial is invalid (of size 0) or 49 bool FindPolynomialRoots(const Vector& polynomial, 53 // Evaluate the polynomial at x using the Horner scheme. 54 inline double EvaluatePolynomial(const Vector& polynomial, double x) { 56 for (int i = 0; i < polynomial.size(); ++i) { 57 v = v * x + polynomial(i);
|
polynomial_solver.cc | 98 void BuildCompanionMatrix(const Vector& polynomial, 103 const int degree = polynomial.size() - 1; 108 companion_matrix.col(degree - 1) = -polynomial.reverse().head(degree); 125 LOG(ERROR) << "Invalid polynomial of size 0 passed to FindPolynomialRoots"; 129 Vector polynomial = RemoveLeadingZeros(polynomial_in); local 130 const int degree = polynomial.size() - 1; 132 // Is the polynomial constant? 135 << "polynomial in FindPolynomialRoots"; 140 const double leading_term = polynomial(0); 141 polynomial /= leading_term [all...] |
/external/eigen/unsupported/Eigen/ |
Polynomials | 24 * \brief This module provides a QR based polynomial solver. 39 and a QR based polynomial solver. 43 polynomials, computing estimates about polynomials and next the QR based polynomial 50 void roots_to_monicPolynomial( const RootVector& rv, Polynomial& poly ) 63 evaluates a polynomial at a given point using stabilized Hörner method. 65 The following code: first computes the coefficients in the monomial basis of the monic polynomial that has the provided roots; 66 then, it evaluates the computed polynomial, using a stabilized Hörner method. 74 Real cauchy_max_bound( const Polynomial& poly ) 76 provides a maximum bound (the Cauchy one: \f$C(p)\f$) for the absolute value of a root of the given polynomial i.e. 84 Real cauchy_min_bound( const Polynomial& poly [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 58 * @brief This routine returns the associated Laguerre polynomial 110 * @brief Evaluate the polynomial based on the confluent hypergeometric 154 * @brief This routine returns the associated Laguerre polynomial 166 * The associated Laguerre polynomial is defined for integral 171 * where the Laguerre polynomial is defined by: 215 * @brief This routine returns the associated Laguerre polynomial 226 * The associated Laguerre polynomial is defined for integral 231 * where the Laguerre polynomial is defined by: 276 * @brief This routine returns the associated Laguerre polynomial 279 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 57 * @brief This routine returns the associated Laguerre polynomial 109 * @brief Evaluate the polynomial based on the confluent hypergeometric 153 * @brief This routine returns the associated Laguerre polynomial 165 * The associated Laguerre polynomial is defined for integral 170 * where the Laguerre polynomial is defined by: 214 * @brief This routine returns the associated Laguerre polynomial 225 * The associated Laguerre polynomial is defined for integral 230 * where the Laguerre polynomial is defined by: 275 * @brief This routine returns the associated Laguerre polynomial 278 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 57 * @brief This routine returns the associated Laguerre polynomial 109 * @brief Evaluate the polynomial based on the confluent hypergeometric 153 * @brief This routine returns the associated Laguerre polynomial 165 * The associated Laguerre polynomial is defined for integral 170 * where the Laguerre polynomial is defined by: 214 * @brief This routine returns the associated Laguerre polynomial 225 * The associated Laguerre polynomial is defined for integral 230 * where the Laguerre polynomial is defined by: 275 * @brief This routine returns the associated Laguerre polynomial 278 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 58 * @brief This routine returns the associated Laguerre polynomial 110 * @brief Evaluate the polynomial based on the confluent hypergeometric 154 * @brief This routine returns the associated Laguerre polynomial 166 * The associated Laguerre polynomial is defined for integral 171 * where the Laguerre polynomial is defined by: 215 * @brief This routine returns the associated Laguerre polynomial 226 * The associated Laguerre polynomial is defined for integral 231 * where the Laguerre polynomial is defined by: 276 * @brief This routine returns the associated Laguerre polynomial 279 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 58 * @brief This routine returns the associated Laguerre polynomial 110 * @brief Evaluate the polynomial based on the confluent hypergeometric 154 * @brief This routine returns the associated Laguerre polynomial 166 * The associated Laguerre polynomial is defined for integral 171 * where the Laguerre polynomial is defined by: 215 * @brief This routine returns the associated Laguerre polynomial 226 * The associated Laguerre polynomial is defined for integral 231 * where the Laguerre polynomial is defined by: 276 * @brief This routine returns the associated Laguerre polynomial 279 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 58 * @brief This routine returns the associated Laguerre polynomial 110 * @brief Evaluate the polynomial based on the confluent hypergeometric 154 * @brief This routine returns the associated Laguerre polynomial 166 * The associated Laguerre polynomial is defined for integral 171 * where the Laguerre polynomial is defined by: 215 * @brief This routine returns the associated Laguerre polynomial 226 * The associated Laguerre polynomial is defined for integral 231 * where the Laguerre polynomial is defined by: 276 * @brief This routine returns the associated Laguerre polynomial 279 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
poly_laguerre.tcc | 58 * @brief This routine returns the associated Laguerre polynomial 110 * @brief Evaluate the polynomial based on the confluent hypergeometric 154 * @brief This routine returns the associated Laguerre polynomial 166 * The associated Laguerre polynomial is defined for integral 171 * where the Laguerre polynomial is defined by: 215 * @brief This routine returns the associated Laguerre polynomial 226 * The associated Laguerre polynomial is defined for integral 231 * where the Laguerre polynomial is defined by: 276 * @brief This routine returns the associated Laguerre polynomial 279 * The associated Laguerre polynomial is defined for integra [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.6/include/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/tr1/ |
poly_hermite.tcc | 55 * @brief This routine returns the Hermite polynomial 58 * The Hermite polynomial is defined by: 63 * @param __n The order of the Hermite polynomial. 64 * @param __x The argument of the Hermite polynomial. 65 * @return The value of the Hermite polynomial of order n 97 * @brief This routine returns the Hermite polynomial 100 * The Hermite polynomial is defined by: 105 * @param __n The order of the Hermite polynomial. 106 * @param __x The argument of the Hermite polynomial. 107 * @return The value of the Hermite polynomial of order [all...] |
/external/eigen/unsupported/test/ |
polynomialsolver.cpp | 30 template<int Deg, typename POLYNOMIAL, typename SOLVER> 31 bool aux_evalSolver( const POLYNOMIAL& pols, SOLVER& psolve ) 33 typedef typename POLYNOMIAL::Index Index; 34 typedef typename POLYNOMIAL::Scalar Scalar; 51 cerr << "Polynomial: " << pols.transpose() << endl; 53 cerr << "Abs value of the polynomial at the roots: " << evr.transpose() << endl; 78 template<int Deg, typename POLYNOMIAL> 79 void evalSolver( const POLYNOMIAL& pols ) 81 typedef typename POLYNOMIAL::Scalar Scalar; 86 aux_evalSolver<Deg, POLYNOMIAL, PolynomialSolverType>( pols, psolve ) [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
ECFieldF2m.java | 38 // Reduction polynomial 40 // Mid term(s) of reduction polynomial 62 * Creates a new {@code ECFieldF2m} with {@code 2^m} elements with a polynomial 63 * basis and the reduction polynomial based on {@code rp}. 65 * The reduction polynomial must be either <i>trinomial</i> or 71 * the base of the reduction polynomial with the n-th bit 73 * polynomial. 109 * a polynomial basis and the reduction polynomial based on {@code ks}. 111 * The reduction polynomial must be either <i>trinomial</i> o [all...] |