Poly1 p-adic.
More...
#include <givpoly1padic.h>
|
|
bool | isDivisor (const Rep &P, const Element &Q) const |
| | isDivisor (a, b) Tests if Q | P (that is if P mod Q == 0).
|
| Rep & | setdegree (Rep &P) const |
| | Compute the degree of P.
|
| size_t & | sqrfree (size_t &Nfact, Rep *Fact, const Rep &P) const |
| | Sqrfree decomposition.
|
|
bool | isUnit (const Rep &x) const |
| | isUnit
|
|
bool | isDivisor (const Element &a, const Element &b) const |
| | isDivisor (a, b) Test if b | a.
|
| std::istream & | read (std::istream &is) const |
| | Read field.
|
| virtual std::istream & | read (std::istream &is, Element &x) const |
| | Read field element.
|
| std::ostream & | write (std::ostream &os, std::string F) const |
| | Read field.
|
| std::ostream & | write (std::ostream &os, const Element &x) const |
| | Print field element.
|
first argument is set and the value is also returned.
|
template<class Domain>
class Givaro::Poly1PadicDom< Domain, Dense >
Poly1 p-adic.
◆ setdegree()
template<class Domain>
| Poly1Dom< Domain, Dense >::Rep & setdegree |
( |
Rep & | P | ) |
const |
|
inlineinherited |
Compute the degree of P.
- Warning
- this is an infamous function that may not leave
P constant !!
- Parameters
-
◆ sqrfree()
template<class Domain>
| size_t & sqrfree |
( |
size_t & | Nfact, |
|
|
Rep * | Fact, |
|
|
const Rep & | P ) const |
|
inherited |
Sqrfree decomposition.
Decompose P such that: P = Fact[0]^0 * Fact[1]^1 * ... * Fact[P.degree()]^(P.degree()), with Fact[0] the leading coefficient. The array Fact must be allocated before calling the function. The size of Fact must be degP+1 is all factors should be computed. For more readeable version of the algorithm, see Geddes, p342.
- Parameters
-
| Nfact | [in] the size of Fact |
| Fact | [in] an array of dimension Nfact |
| Nfact | [out] is the number of factor in the sqrfree decomposition |
| Fact | [out] contains at most Nfact factors of the decomposition. |
| P | rep. |
◆ read() [1/2]
template<class _Element>
| std::istream & read |
( |
std::istream & | is | ) |
const |
|
inlineinherited |
Read field.
- Returns
- input stream from which field is read.
- Parameters
-
| is | input stream from which field is read. |
◆ read() [2/2]
template<class _Element>
| virtual std::istream & read |
( |
std::istream & | is, |
|
|
Element & | x ) const |
|
inlinevirtualinherited |
Read field element.
- Returns
- input stream from which field element is read.
- Parameters
-
| is | input stream from which field element is read. |
| x | field element. |
◆ write() [1/2]
template<class _Element>
| std::ostream & write |
( |
std::ostream & | os, |
|
|
std::string | F ) const |
|
inlineinherited |
Read field.
- Returns
- input stream from which field is read.
- Parameters
-
| is | input stream from which field is read. |
◆ write() [2/2]
template<class _Element>
| std::ostream & write |
( |
std::ostream & | os, |
|
|
const Element & | x ) const |
|
inlineinherited |
Print field element.
- Returns
- output stream to which field element is written.
- Parameters
-
| os | output stream to which field element is written. |
| x | field element. |
The documentation for this class was generated from the following file: