33 #include <itpp/itexports.h> 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);
131 ITPP_EXPORT vec
cheb(
int n,
const vec &x);
156 ITPP_EXPORT mat
cheb(
int n,
const mat &x);
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...
vec polyval(const vec &p, const vec &x)
Evaluate polynomialEvaluate the polynomial p (of length at the points x The output is given by ...
void roots(const vec &p, cvec &r)
Calculate the roots of the polynomialCalculate the roots r of the polynomial p.
void poly(const vec &r, vec &p)
Create a polynomial of the given rootsCreate a polynomial p with roots r.
Templated Vector Class Definitions.