My Project
Loading...
Searching...
No Matches
Public Member Functions
Ideal Class Reference

#include <Ideal.h>

Public Member Functions

 Ideal ()
 
 Ideal (ideal i, ring r)
 
 Ideal (iterator first, iterator last, const allocator_type &__a=allocator_type())
 
ideal as_ideal () const
 
- Public Member Functions inherited from IdealBase< Poly >
 IdealBase ()
 
 IdealBase (iterator first, iterator last, const typename std::vector< Poly >::allocator_type &__a=allocator_type())
 
ring getRing () const
 
Polyoperator[] (int n)
 
const Polyoperator[] (int n) const
 
void push_back (const Poly &p)
 
void push_front (const Poly &p)
 
iterator begin ()
 
iterator end ()
 
size_type size () const
 
iterator insert (iterator __position, const value_type &__x)
 
void insert (iterator __pos, iterator __first, iterator __last)
 
iterator erase (iterator __position)
 
iterator erase (iterator __first, iterator __last)
 

Additional Inherited Members

- Public Types inherited from IdealBase< Poly >
typedef Poly value_type
 
typedef std::vector< Poly >::size_type size_type
 
typedef std::vector< Poly >::iterator iterator
 
typedef std::vector< Poly >::difference_type difference_type
 
typedef std::vector< Poly >::allocator_type allocator_type
 
- Protected Attributes inherited from IdealBase< Poly >
std::vector< Polystorage
 

Detailed Description

Definition at line 86 of file Ideal.h.

Constructor & Destructor Documentation

◆ Ideal() [1/3]

Ideal::Ideal ( )
inline

Definition at line 90 of file Ideal.h.

90{}

◆ Ideal() [2/3]

Ideal::Ideal ( ideal  i,
ring  r 
)
inline

Definition at line 91 of file Ideal.h.

92 {
93 for(int j=0;j<IDELEMS(i);j++)
94 {
95 storage.push_back(Poly(i->m[j],r));
96 }
97 }
int i
Definition: cfEzgcd.cc:132
std::vector< Poly > storage
Definition: Ideal.h:11
int j
Definition: facHensel.cc:110
#define IDELEMS(i)
Definition: simpleideals.h:23
Definition: janet.h:15

◆ Ideal() [3/3]

Ideal::Ideal ( iterator  first,
iterator  last,
const allocator_type __a = allocator_type() 
)
inline

Definition at line 98 of file Ideal.h.

100 :
101 IdealBase<Poly>(first,last,__a){}
Definition: Ideal.h:9
STATIC_VAR poly last
Definition: hdegree.cc:1173

Member Function Documentation

◆ as_ideal()

ideal Ideal::as_ideal ( ) const
inline

Definition at line 102 of file Ideal.h.

103 {
104 //no checks for rings
105 int s=size();
106
107 if (s==0) s=1;
108
109 ideal result=idInit(s,1);
110 result->m[0]=NULL;
111 s=size();
112 for(int i=0;i<s;i++)
113 {
114 result->m[i]=storage[i].as_poly();
115 }
116 return result;
117 }
size_type size() const
Definition: Ideal.h:61
return result
Definition: facAbsBiFact.cc:75
const CanonicalForm int s
Definition: facAbsFact.cc:51
#define NULL
Definition: omList.c:12
ideal idInit(int idsize, int rank)
initialise an ideal / module
Definition: simpleideals.cc:35

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