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::Array
General array class.
Definition array.h:105
itpp::cheb
double cheb(int n, double x)
Chebyshev polynomial of the first kind.
Definition poly.cpp:195
itpp::polyval
vec polyval(const vec &p, const vec &x)
Evaluate polynomial.
Definition poly.cpp:135
itpp::poly
void poly(const vec &r, vec &p)
Create a polynomial of the given roots.
Definition poly.cpp:40
itpp::roots
void roots(const vec &p, cvec &r)
Calculate the roots of the polynomial.
Definition poly.cpp:66
itpp
itpp namespace
Definition itmex.h:37
vec.h
Templated Vector Class Definitions.

Generated on Mon Jun 10 2024 11:49:24 for IT++ by Doxygen 1.9.8