IT++ Logo
poly.h
Go to the documentation of this file.
1 
29 #ifndef POLY_H
30 #define POLY_H
31 
32 #include <itpp/base/vec.h>
33 #include <itpp/itexports.h>
34 
35 namespace itpp
36 {
37 
46 ITPP_EXPORT void poly(const vec &r, vec &p);
47 inline vec poly(const vec &r) { vec temp; poly(r, temp); return temp; }
48 ITPP_EXPORT void poly(const cvec &r, cvec &p);
49 inline cvec poly(const cvec &r) { cvec temp; poly(r, temp); return temp; }
61 ITPP_EXPORT void roots(const vec &p, cvec &r);
62 inline cvec roots(const vec &p) { cvec temp; roots(p, temp); return temp; }
63 ITPP_EXPORT void roots(const cvec &p, cvec &r);
64 inline cvec roots(const cvec &p) { cvec temp; roots(p, temp); return temp; }
80 ITPP_EXPORT vec polyval(const vec &p, const vec &x);
81 ITPP_EXPORT cvec polyval(const vec &p, const cvec &x);
82 ITPP_EXPORT cvec polyval(const cvec &p, const vec &x);
83 ITPP_EXPORT cvec polyval(const cvec &p, const cvec &x);
106 ITPP_EXPORT double cheb(int n, double x);
107 
131 ITPP_EXPORT vec cheb(int n, const vec &x);
132 
156 ITPP_EXPORT mat cheb(int n, const mat &x);
157 } // namespace itpp
158 
159 #endif // #ifndef POLY_H
double cheb(int n, double x)
Chebyshev polynomial of the first kindChebyshev polynomials of the first kind can be defined as follo...
Definition: poly.cpp:195
vec polyval(const vec &p, const vec &x)
Evaluate polynomialEvaluate the polynomial p (of length at the points x The output is given by ...
Definition: poly.cpp:135
itpp namespace
Definition: itmex.h:36
void roots(const vec &p, cvec &r)
Calculate the roots of the polynomialCalculate the roots r of the polynomial p.
Definition: poly.cpp:66
void poly(const vec &r, vec &p)
Create a polynomial of the given rootsCreate a polynomial p with roots r.
Definition: poly.cpp:40
Templated Vector Class Definitions.
SourceForge Logo

Generated on Sun Apr 10 2022 12:00:00 for IT++ by Doxygen 1.8.14