MPoly_2_2< RT_ > Struct Template Reference

List of all members.

Detailed Description

template<typename RT_>
struct MPoly_2_2< RT_ >

A class for bivariate polynomial of degree up to 2.

Definition at line 43 of file MPoly_2_2.h.

Public Types

typedef NumberTraits< RT_ > NTR
typedef NTR::RT RT
typedef NTR::FT FT
typedef std::vector< RTVector
typedef RT value_type
typedef unsigned size_type

Public Member Functions

 MPoly_2_2 ()
 MPoly_2_2 (const Vector &v)
 MPoly_2_2 (RT *C)
 MPoly_2_2 (const RT &c5, const RT &c4, const RT &c3, const RT &c2, const RT &c1, const RT &c0)
 MPoly_2_2 (const FT &c5, const FT &c4, const FT &c3, const FT &c2, const FT &c1, const FT &c0)
MPoly_2_2make_lcoeff_positive ()
 Make the lcoeff, wrt to degree-lex order, positive.
MPoly_2_2make_lcoeff_X_positive ()
 Make the lcoeff, wrt x, positive.
MPoly_2_2make_lcoeff_Y_positive ()
 Make the lcoeff, wrt y, positive.
MPoly_2_2revertXY ()
 Revert the role of x and y.
int degree (const int &idx) const
 If idx==0 degree wrt to X, else wrt to Y.
int degree () const
 Total degree.
void set_center (const FT &xc, const FT &yc)
FT xc () const
FT yc () const
void set_coeff (const size_type &i, const RT &x)
RT coeff (const size_type &i, const size_type &j) const
RT operator[] (const size_type &i) const
unsigned long id () const
template<typename POLY>
int sign_at (const FT &x, const FT &y) const

Public Attributes

std::vector< RTC_
unsigned long id_
FT xc_
FT yc_

Static Public Attributes

static unsigned long counter


Member Function Documentation

template<typename RT_>
MPoly_2_2& MPoly_2_2< RT_ >::make_lcoeff_positive (  ) 

Make the lcoeff, wrt to degree-lex order, positive.

Definition at line 119 of file MPoly_2_2.h.

References MPoly_2_2< RT_ >::C_.

template<typename RT_>
MPoly_2_2& MPoly_2_2< RT_ >::make_lcoeff_X_positive (  ) 

Make the lcoeff, wrt x, positive.

Definition at line 133 of file MPoly_2_2.h.

References MPoly_2_2< RT_ >::C_.

template<typename RT_>
MPoly_2_2& MPoly_2_2< RT_ >::make_lcoeff_Y_positive (  ) 

Make the lcoeff, wrt y, positive.

Definition at line 151 of file MPoly_2_2.h.

References MPoly_2_2< RT_ >::C_.

template<typename RT_>
MPoly_2_2& MPoly_2_2< RT_ >::revertXY (  ) 

Revert the role of x and y.

Definition at line 170 of file MPoly_2_2.h.

References MPoly_2_2< RT_ >::C_.

template<typename RT_>
int MPoly_2_2< RT_ >::degree ( const int &  idx  )  const

If idx==0 degree wrt to X, else wrt to Y.

Definition at line 178 of file MPoly_2_2.h.

References MPoly_2_2< RT_ >::C_.

template<typename RT_>
int MPoly_2_2< RT_ >::degree (  )  const

Total degree.

Definition at line 193 of file MPoly_2_2.h.

References MPoly_2_2< RT_ >::C_.


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

SYNAPS DOCUMENTATION
logo