shape_doc 0.1
algebraic_curve< C, V > Class Template Reference

#include <algebraic_curve.hpp>

Inheritance diagram for algebraic_curve< C, V >:
curve< REF_OF(V)> algebraic_set< C, REF_OF(V)> SHAPE_OFV semialgebraic_curve< C, V >

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class C, class V = default_env>
class mmx::shape::algebraic_curve< C, V >

Definition at line 41 of file algebraic_curve.hpp.


Member Typedef Documentation

typedef curve<Ref> Curve

Definition at line 49 of file algebraic_curve.hpp.

Reimplemented from algebraic_set< C, REF_OF(V)>.

Reimplemented in semialgebraic_curve< C, V >.

Definition at line 48 of file algebraic_curve.hpp.


Constructor & Destructor Documentation

algebraic_curve ( void  ) [inline]

Definition at line 51 of file algebraic_curve.hpp.

: Curve() {};
algebraic_curve ( char *  s)

Definition at line 62 of file algebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::insert().

                             : Curve()
{
  typedef typename use<numeric_def,V>::Rational Coefficients;
  polynomial<Coefficients, with<Sparse,DegRevLex> >t(s, variables("x y"));
  Polynomial e; let::assign(e,t);
  this->insert(e);
}
algebraic_curve ( const char *  s1,
const char *  s2 
)

Definition at line 71 of file algebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::insert().

                                                     : Curve()
{
  variables var("x y z");
  //polynomial<double,with<Sparse,DegRevLex> > t1(s1, var);
  //Polynomial e1; let::assign(e1,t1);
  Polynomial e1(s1,var);        
  this->insert(e1);  
        
  //polynomial<double,with<Sparse,DegRevLex> > t2(s2, var);
  //Polynomial e2; let::assign(e2,t2);  
  Polynomial e2(s2,var);
  this->insert(e2);
}
algebraic_curve ( const Polynomial eq)

Definition at line 86 of file algebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::insert().

                                          : Curve()
{
  this->insert(s);
}
algebraic_curve ( const Polynomial eq1,
const Polynomial eq2 
)

Definition at line 92 of file algebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::insert().

                                                                  : Curve()
{
  this->insert(p1);
  this->insert(p2);
}
~algebraic_curve ( void  ) [inline]

Definition at line 57 of file algebraic_curve.hpp.

{};

Member Function Documentation

const Polynomial& equation ( int  i = 0) const [inline, inherited]

Definition at line 64 of file algebraic_set.hpp.

Referenced by semialgebraic_curve< C, V >::inequality(), and semialgebraic_curve< C, V >::semialgebraic_curve().

{ return this->m_polynomials[i] ; }
Polynomial& equation ( int  i = 0) [inline, inherited]

Definition at line 65 of file algebraic_set.hpp.

{ return this->m_polynomials[i] ; }
const Seq<Polynomial>& equations ( ) const [inline, inherited]

Definition at line 63 of file algebraic_set.hpp.

{ return this->m_polynomials ; }
void insert ( const Polynomial p) [inline, inherited]

Definition at line 67 of file algebraic_set.hpp.

Referenced by algebraic_curve< C, V >::algebraic_curve().

{ this->m_polynomials<<p; }
int nbequation ( ) const [inline, inherited]

Definition at line 68 of file algebraic_set.hpp.

{ return m_polynomials.size(); }
typedef REF_OF ( )
void set_equation ( const Polynomial p) [inline, inherited]

Definition at line 66 of file algebraic_set.hpp.

Referenced by semialgebraic_curve< C, V >::semialgebraic_curve().

{ this->m_polynomials[0]=p ; }

The documentation for this class was generated from the following file: