My Project
Loading...
Searching...
No Matches
cf_eval.h
Go to the documentation of this file.
1/* emacs edit mode for this file is -*- C++ -*- */
2
3/**
4 * @file cf_eval.h
5 *
6 * evaluate polynomials at points
7**/
8
9#ifndef INCL_CF_EVAL_H
10#define INCL_CF_EVAL_H
11
12// #include "config.h"
13
14#ifndef NOSTREAMIO
15#ifdef HAVE_IOSTREAM
16#include <iostream>
17#define OSTREAM std::ostream
18#elif defined(HAVE_IOSTREAM_H)
19#include <iostream.h>
20#define OSTREAM ostream
21#endif
22#endif /* NOSTREAMIO */
23
24#include "canonicalform.h"
25
26/*BEGINPUBLIC*/
27
28/**
29 * class to evaluate a polynomial at points
30**/
32{
33protected:
35public:
37 Evaluation( int min0, int max0 ) : values( min0, max0 ) {}
38 Evaluation( const Evaluation & e ) : values( e.values ) {}
39 virtual ~Evaluation() {}
40 Evaluation& operator= ( const Evaluation & e );
41 int min() const { return values.min(); }
42 int max() const { return values.max(); }
43 CanonicalForm operator[] ( int i ) const { return values[i]; }
44 CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
46 CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
47 void setValue (int i, const CanonicalForm& f);
48 virtual void nextpoint();
49#ifndef NOSTREAMIO
50 friend OSTREAM& operator<< ( OSTREAM& s, const Evaluation &e );
51#endif /* NOSTREAMIO */
52};
53
54/*ENDPUBLIC*/
55
56#endif /* ! INCL_CF_EVAL_H */
Header for factory's main class CanonicalForm.
int i
Definition: cfEzgcd.cc:132
#define OSTREAM
Definition: cf_eval.h:17
FILE * f
Definition: checklibs.c:9
int max() const
Definition: ftmpl_array.cc:104
int min() const
Definition: ftmpl_array.cc:98
factory's main class
Definition: canonicalform.h:86
class to evaluate a polynomial at points
Definition: cf_eval.h:32
void setValue(int i, const CanonicalForm &f)
Definition: cf_eval.cc:51
CanonicalForm operator[](const Variable &v) const
Definition: cf_eval.h:44
CFArray values
Definition: cf_eval.h:34
Evaluation(int min0, int max0)
Definition: cf_eval.h:37
Evaluation & operator=(const Evaluation &e)
Definition: cf_eval.cc:15
int min() const
Definition: cf_eval.h:41
virtual ~Evaluation()
Definition: cf_eval.h:39
int max() const
Definition: cf_eval.h:42
CanonicalForm operator()(const CanonicalForm &f) const
Definition: cf_eval.cc:24
CanonicalForm operator[](int i) const
Definition: cf_eval.h:43
Evaluation(const Evaluation &e)
Definition: cf_eval.h:38
virtual void nextpoint()
Definition: cf_eval.cc:43
Evaluation()
Definition: cf_eval.h:36
factory's class for variables
Definition: variable.h:33
int level() const
Definition: variable.h:49
const CanonicalForm int s
Definition: facAbsFact.cc:51
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:39
int j
Definition: facHensel.cc:110
ostream & operator<<(ostream &s, const spectrum &spec)
Definition: semic.cc:249