Loading...
Searching...
No Matches
cf_eval.h
Go to the documentation of this file.
/* emacs edit mode for this file is -*- C++ -*- */
/**
* @file cf_eval.h
*
* evaluate polynomials at points
**/
#ifndef INCL_CF_EVAL_H
#define INCL_CF_EVAL_H
// #include "config.h"
#ifndef NOSTREAMIO
#ifdef HAVE_IOSTREAM
#include <iostream>
#define OSTREAM std::ostream
#elif defined(HAVE_IOSTREAM_H)
#include <iostream.h>
#define OSTREAM ostream
#endif
#endif /* NOSTREAMIO */
#include "canonicalform.h"
/*BEGINPUBLIC*/
/**
* class to evaluate a polynomial at points
**/
class Evaluation
{
protected:
CFArray values;
public:
Evaluation() : values() {}
Evaluation( int min0, int max0 ) : values( min0, max0 ) {}
Evaluation( const Evaluation & e ) : values( e.values ) {}
virtual ~Evaluation() {}
Evaluation& operator= ( const Evaluation & e );
int min() const { return values.min(); }
int max() const { return values.max(); }
CanonicalForm operator[] ( int i ) const { return values[i]; }
CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
CanonicalForm operator() ( const CanonicalForm& f ) const;
CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
void setValue (int i, const CanonicalForm& f);
virtual void nextpoint();
#ifndef NOSTREAMIO
friend OSTREAM& operator<< ( OSTREAM& s, const Evaluation &e );
#endif /* NOSTREAMIO */
};
/*ENDPUBLIC*/
#endif /* ! INCL_CF_EVAL_H */
canonicalform.h
Header for factory's main class CanonicalForm.
OSTREAM
#define OSTREAM
Definition canonicalform.h:16
i
int i
Definition cfEzgcd.cc:132
f
FILE * f
Definition checklibs.c:9
CanonicalForm
factory's main class
Definition canonicalform.h:86
Evaluation
class to evaluate a polynomial at points
Definition cf_eval.h:32
Evaluation::setValue
void setValue(int i, const CanonicalForm &f)
Definition cf_eval.cc:51
Evaluation::operator[]
CanonicalForm operator[](const Variable &v) const
Definition cf_eval.h:44
Evaluation::values
CFArray values
Definition cf_eval.h:34
Evaluation::Evaluation
Evaluation(int min0, int max0)
Definition cf_eval.h:37
Evaluation::operator=
Evaluation & operator=(const Evaluation &e)
Definition cf_eval.cc:15
Evaluation::min
int min() const
Definition cf_eval.h:41
Evaluation::~Evaluation
virtual ~Evaluation()
Definition cf_eval.h:39
Evaluation::max
int max() const
Definition cf_eval.h:42
Evaluation::operator()
CanonicalForm operator()(const CanonicalForm &f) const
Definition cf_eval.cc:24
Evaluation::operator[]
CanonicalForm operator[](int i) const
Definition cf_eval.h:43
Evaluation::operator<<
friend OSTREAM & operator<<(OSTREAM &s, const Evaluation &e)
Definition cf_eval.cc:60
Evaluation::Evaluation
Evaluation(const Evaluation &e)
Definition cf_eval.h:38
Evaluation::nextpoint
virtual void nextpoint()
Definition cf_eval.cc:43
Evaluation::Evaluation
Evaluation()
Definition cf_eval.h:36
Variable
factory's class for variables
Definition factory.h:127
s
const CanonicalForm int s
Definition facAbsFact.cc:51
v
const Variable & v
< [in] a sqrfree bivariate poly
Definition facBivar.h:39
j
int j
Definition facHensel.cc:110
CFArray
Array< CanonicalForm > CFArray
Definition factory.h:538