algebraic< C, Extension > Class Template Reference

#include <algebraic.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename C, typename Extension = algebraic_extension<C>>
class mmx::algebraic< C, Extension >

Definition at line 64 of file algebraic.hpp.


Constructor & Destructor Documentation

algebraic (  )  [inline]

Definition at line 70 of file algebraic.hpp.

00070                      :
00071     ext (trivial_extension<C,Extension> ()) {}
  template<typename T> inline algebraic (const T& c):

algebraic ( const T &  c  )  [inline]

Definition at line 72 of file algebraic.hpp.

00072                                                     :
00073     ext (trivial_extension<C,Extension> (get_format (as<C> (c)))), p (c) {}
  inline algebraic (const Extension ext2, const Polynomial& p2):

algebraic ( const Extension  ext2,
const polynomial< C > &  p2 
) [inline]

Definition at line 74 of file algebraic.hpp.

00074                                                                :
00075     ext (ext2), p (p2) {}
  inline algebraic (const Polynomial& mp):

algebraic ( const polynomial< C > &  mp  )  [inline]

Definition at line 76 of file algebraic.hpp.

References promote().

00076                                          :
00077     ext (mp), p (vec<C> (promote (0, CF(mp)), promote (1, CF(mp)))) {}
  template<typename X> inline

algebraic ( const polynomial< C > &  mp,
const X &  x 
) [inline]

Definition at line 79 of file algebraic.hpp.

References promote().

00079                                               :
00080     ext (mp, x), p (vec<C> (promote (0, CF(mp)), promote (1, CF(mp)))) {}
  inline algebraic (const Polynomial& mp, const Polynomial& p2):

algebraic ( const polynomial< C > &  mp,
const polynomial< C > &  p2 
) [inline]

Definition at line 81 of file algebraic.hpp.

00081                                                                :
00082     ext (mp), p (deg (p2) < deg (mp)? p2: rem (p2, mp)) {}
  template<typename X> inline

algebraic ( const polynomial< C > &  mp,
const polynomial< C > &  p2,
const X &  x 
) [inline]

Definition at line 84 of file algebraic.hpp.

00084                                                                     :
00085     ext (mp, x), p (deg (p2) < deg (mp)? p2: rem (p2, mp)) {}
  template<typename C2, typename Extension2> inline

algebraic ( const algebraic< C2, Extension2 > &  x2  )  [inline]

Definition at line 87 of file algebraic.hpp.

00087                                                 :
00088     ext (field (x2)), p (as<Element > (value (x2))) {}
};


Member Data Documentation

Extension ext

Definition at line 67 of file algebraic.hpp.

Extension::El p

Definition at line 68 of file algebraic.hpp.


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

Generated on 6 Dec 2012 for algebramix by  doxygen 1.6.1