IT++
4.3.1
Toggle main menu visibility
itpp
signal
poly.h
Go to the documentation of this file.
1
28
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; }
51
52
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; }
66
67
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);
85
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
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 by
1.17.0