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.

00051 : Curve() {};

algebraic_curve ( char *  s  )  [inline]

Definition at line 62 of file algebraic_curve.hpp.

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

00062                              : Curve()
00063 {
00064   //typedef typename use<numeric_def,C,V>::Rational Coefficients;
00065   //polynomial<Coefficients, with<Sparse,DegRevLex> >t(s, variables("x y"));
00066   Polynomial e(s, variables("x y") ); //let::assign(s,variables("x y"));
00067   this->insert(e);
00068 }

algebraic_curve ( const char *  s1,
const char *  s2 
) [inline]

Definition at line 71 of file algebraic_curve.hpp.

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

00071                                                      : Curve()
00072 {
00073   variables var("x y z");
00074   //polynomial<double,with<Sparse,DegRevLex> > t1(s1, var);
00075   //Polynomial e1; let::assign(e1,t1);
00076   Polynomial e1(s1,var);        
00077   this->insert(e1);  
00078         
00079   //polynomial<double,with<Sparse,DegRevLex> > t2(s2, var);
00080   //Polynomial e2; let::assign(e2,t2);  
00081   Polynomial e2(s2,var);
00082   this->insert(e2);
00083 }

algebraic_curve ( const Polynomial eq  )  [inline]

Definition at line 86 of file algebraic_curve.hpp.

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

00086                                           : Curve()
00087 {
00088   this->insert(s);
00089 }

algebraic_curve ( const Polynomial eq1,
const Polynomial eq2 
) [inline]

Definition at line 92 of file algebraic_curve.hpp.

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

00092                                                                   : Curve()
00093 {
00094   this->insert(p1);
00095   this->insert(p2);
00096 }

~algebraic_curve ( void   )  [inline]

Definition at line 57 of file algebraic_curve.hpp.

00057 {};


Member Function Documentation

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

Definition at line 64 of file algebraic_set.hpp.

00064 { return this->m_polynomials[i] ; }

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

Definition at line 63 of file algebraic_set.hpp.

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

00063 { return this->m_polynomials[i] ; }

const Seq<Polynomial>& equations (  )  const [inline, inherited]

Definition at line 62 of file algebraic_set.hpp.

00062 { return this->m_polynomials ; }

void insert ( const Polynomial &  p  )  [inline, inherited]

Definition at line 66 of file algebraic_set.hpp.

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

00066 { this->m_polynomials<<p; }

int nbequation (  )  const [inline, inherited]

Definition at line 67 of file algebraic_set.hpp.

References Seq< C, R >::size().

00067 { return m_polynomials.size(); }

typedef REF_OF (  ) 
void set_equation ( const Polynomial &  p  )  [inline, inherited]

Definition at line 65 of file algebraic_set.hpp.

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

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


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1