poly.h
Go to the documentation of this file.
#ifndef POLY_H
#define POLY_H
#include <itpp/base/vec.h>
#include <itpp/itexports.h>
namespace itpp
{
ITPP_EXPORT void poly(const vec &r, vec &p);
inline vec poly(const vec &r) { vec temp; poly(r, temp); return temp; }
ITPP_EXPORT void poly(const cvec &r, cvec &p);
inline cvec poly(const cvec &r) { cvec temp; poly(r, temp); return temp; }
ITPP_EXPORT void roots(const vec &p, cvec &r);
inline cvec roots(const vec &p) { cvec temp; roots(p, temp); return temp; }
ITPP_EXPORT void roots(const cvec &p, cvec &r);
inline cvec roots(const cvec &p) { cvec temp; roots(p, temp); return temp; }
ITPP_EXPORT vec polyval(const vec &p, const vec &x);
ITPP_EXPORT cvec polyval(const vec &p, const cvec &x);
ITPP_EXPORT cvec polyval(const cvec &p, const vec &x);
ITPP_EXPORT cvec polyval(const cvec &p, const cvec &x);
ITPP_EXPORT double cheb(int n, double x);
ITPP_EXPORT vec cheb(int n, const vec &x);
ITPP_EXPORT mat cheb(int n, const mat &x);
} // namespace itpp
#endif // #ifndef POLY_H
itpp::cheb
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
itpp::polyval
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
itpp namespace
Definition: itmex.h:36
itpp::roots
void roots(const vec &p, cvec &r)
Calculate the roots of the polynomialCalculate the roots r of the polynomial p.
Definition: poly.cpp:66
itpp::poly
void poly(const vec &r, vec &p)
Create a polynomial of the given rootsCreate a polynomial p with roots r.
Definition: poly.cpp:40
vec.h
Templated Vector Class Definitions.

Generated on Sat Sep 30 2017 07:04:09 for IT++ by Doxygen 1.8.13