1 #ifndef realroot_MPOLDSE_BERNSTEIN_C
2 #define realroot_MPOLDSE_BERNSTEIN_C
8 template<
class C >
inline void
13 template <
class C >
inline void
19 template <
class C >
inline void
25 template <
class C >
inline void
30 template <
class C >
inline void
35 template <
class C ,
class V>
inline void
38 for(
unsigned i=0;i<bx.size();i+=2)
42 template <
class C >
void
52 template <
class C >
void
58 template <
class C >
void
67 template <
class C >
void
72 template<
class C>
void
75 if ( newe == r.
env )
return;
80 template <
class C >
void
98 template <
class C >
void
104 template <
class C >
void
121 template <
class C >
void
126 template <
class C >
void
131 template <
class C >
void
136 template <
class C >
void
141 template <
class C >
void
151 template <
class C >
void
162 template <
class C >
inline void
167 template <
class C >
inline void
172 template <
class C >
void
177 template <
class C >
inline void
194 template <
class Result,
class Coeff,
class Parameters >
inline
200 template <
class Coeff>
inline
203 Coeff tmp[controls.
env.
sz()];
209 template <
class Result,
class Coeff,
class Parameters >
inline
215 template <
class Result,
class Coeff,
class Parameters >
inline
218 subs0b( result, controls.
begin (), controls.
env, parameters );
221 template <
class C >
void
229 template <
class C >
void
237 template <
class C >
void
245 template <
class C >
void
253 std::ostream & operator<< (std::ostream & o, const bernstein < C > &mpl)
255 o <<
"bernstein object:\n";
256 o <<
"\t(addresses) o: " << &mpl <<
" e: " << mpl.env.data <<
"d: " << mpl.
257 begin () << std::endl;
258 o <<
"\t(eenv)" << mpl.env << std::endl;
262 o <<
":object bernstein\n";
266 template<
class C>
void
282 template <
class C >
void
285 for (
const C * a = mpl.
begin (); a != mpl.
end (); o <<
" " << *a++){}
288 template <
class OSTREAM,
class C >
void
297 template<
class OSTREAM,
class C >
void
304 template<
class OSTREAM,
class C >
void inline
316 template<
class C>
inline
331 template<
class C,
class T>
339 template<
class C>
inline
346 template<
class C,
class T>
353 template<
class C>
inline
360 template<
class C>
inline
367 template<
class C>
inline
382 template<
class C,
class U>
void assign(
C& p,
const U& q);
384 template<
class C,
class U>
392 template<
class C,
class D>
inline void
396 for(
int i=0;i<m.
size();i++) b[i] =as<C>(m[i]);
400 template<
class C,
class D,
class O>
inline void
405 template<
class C,
class D,
class O,
class DOM>
inline void
bool operator==(const extended< NT > &lhs, const extended< NT > &rhs)
Definition: extended.hpp:88
void casteljau(bernstein< C > &a, bernstein< C > &b, const C &t, int v)
Definition: tensor_bernstein_fcts.hpp:222
void bsplit2(C *l, C *r, const eenv &env, int v)
Definition: tensor_eenv_loops.hpp:428
void bsplit(C *l, C *r, const eenv &env, const T &t, int v)
Definition: tensor_eenv_loops.hpp:399
void uscale(bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:20
const C & b
Definition: Interval_glue.hpp:25
void add(bernstein< C > &mpl, const C &c)
Definition: tensor_bernstein_fcts.hpp:53
void swap(monomials< C > &a)
Definition: tensor_monomials.hpp:88
void subs0(Result *result, const bernstein< Coeff > &controls, const Parameters ¶meters)
Definition: tensor_bernstein_fcts.hpp:216
void clear(monomials< C > &monoms)
Definition: tensor_monomials_fcts.hpp:87
static eenv elevation(const eenv &a, const eenv &b)
Definition: tensor_eenv_fcts.hpp:366
void mul(bernstein< C > &r, const bernstein< C > &a, const bernstein< C > &b)
Definition: tensor_bernstein_fcts.hpp:142
void elevate(bernstein< C > &r, const eenv &elev)
Definition: tensor_bernstein_fcts.hpp:43
void restrict(bernstein< C > &rst, int v, const T &a, const T &b)
Definition: tensor_bernstein_fcts.hpp:347
int size() const
Definition: tensor_monomials.hpp:72
static eenv common(const eenv &a, const eenv &b)
Definition: tensor_eenv_fcts.hpp:211
void rewrite(bernstein< C > &r, const eenv &newe)
Definition: tensor_bernstein_fcts.hpp:73
Definition: tensor_eenv.hpp:9
int localv(int i) const
Definition: tensor_eenv.hpp:61
void assign(monomials< C > &monoms, const bernstein< C > &controls)
Definition: tensor_bernstein_fcts.hpp:267
eenv face_env(const eenv &e, int lv)
Definition: tensor_monomials_fcts.hpp:428
void eval(Result &result, const bernstein< Coeff > &controls, const Parameters ¶meters)
Definition: tensor_bernstein_fcts.hpp:195
void scsub(A *a, const B &b, unsigned n, int s=1)
Definition: tensor_vctops.hpp:74
void sub(bernstein< C > &r, const bernstein< C > &a)
Definition: tensor_bernstein_fcts.hpp:105
vector_type data
Definition: tensor_monomials.hpp:32
C * begin()
Definition: tensor_monomials.hpp:47
int nvr() const
number of variables
Definition: tensor_eenv_fcts.hpp:9
int vridx(int i) const
Definition: tensor_eenv.hpp:62
TMPL void copy(Polynomial &r, const Polynomial &a)
Copy of a in r.
Definition: sparse_monomials.hpp:613
C * end()
Definition: tensor_monomials.hpp:48
UPOL convert(const MPOL &p, unsigned v)
Definition: tensor_convert.hpp:73
void brestrict(C *src, const eenv &env, int v, const T &a, const T &b)
Definition: tensor_eenv_loops.hpp:489
void cfdump(std::ostream &o, const bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:283
Definition: tensor_monomials.hpp:18
void binoms(bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:9
TMPL void face(Polynomial &r, const Polynomial &p, int v, int f)
Definition: polynomial_fcts.hpp:188
void print(OSTREAM &o, const bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:298
static eenv diff(const eenv &b, int lv)
Definition: tensor_eenv_fcts.hpp:270
void scadd(A *a, const B &b, unsigned n, int s=1)
Definition: tensor_vctops.hpp:62
TMPL void split(Polynomial &r, Polynomial &p, int v)
Definition: polynomial_fcts.hpp:193
int sz() const
return the total number of coefficients of the dense representation
Definition: tensor_eenv_fcts.hpp:16
base_type::vector_type vector_type
Definition: tensor_bernstein.hpp:17
void padd(A *a, const B *b, unsigned sz, int sta=1, int stb=1)
Definition: tensor_vctops.hpp:13
void mprint(OSTREAM &o, const bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:289
TMPL Polynomial diff(const Polynomial &p, int v)
Definition: tensor_bernstein.hpp:79
void decasteljau(real_t *r, unsigned sz, const value_t &t, int str=1)
Definition: tensor_eenv_loops.hpp:70
Definition: binomials.hpp:68
int esz() const
Definition: tensor_monomials.hpp:71
const C & c
Definition: Interval_glue.hpp:45
double C
Definition: solver_mv_fatarcs.cpp:16
void convertm2b(bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:31
void lface(bernstein< C > &f, const bernstein< C > &src, int v)
Definition: tensor_bernstein_fcts.hpp:354
bernstein & operator=(const C &x)
Definition: tensor_bernstein_fcts.hpp:324
void assign(A &a, const B &b)
Generic definition of the assignement function.
Definition: assign.hpp:97
void convertb2m(monomials< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:26
void psub(A *a, const B *b, unsigned sz, int sta=1, int stb=1)
Definition: tensor_vctops.hpp:26
void levalb(R &result, const C *data, const eenv &env, const P &p)
Definition: tensor_eenv_loops.hpp:80
void scale(bernstein< C > &mpl)
Definition: tensor_bernstein_fcts.hpp:14
void div(bernstein< C > &r, const bernstein< C > &a, const C &c)
Definition: tensor_bernstein_fcts.hpp:178
void conv(MPLBASE0 &r, const MPLBASE1 &a)
Definition: tensor_convert.hpp:62
void rface(bernstein< C > &f, const bernstein< C > &src, int v)
Definition: tensor_bernstein_fcts.hpp:361
Definition: variables.hpp:65
void realloc(monomials< C > &mpl, const eenv &nenv)
Definition: tensor_monomials_fcts.hpp:77
eenv env
Definition: tensor_monomials.hpp:31
void scmul(A *a, const B &b, unsigned n, int s=1)
Definition: tensor_vctops.hpp:98
Definition: tensor_bernstein.hpp:13
OS & print(OS &os, const R &v)
Output function for general vectors: [v1, v2, ...].
Definition: array.hpp:39
#define assert(expr, msg)
Definition: shared_object.hpp:57