#include <boost/intrusive_ptr.hpp>
#include "kernel/mod2.h"
#include "coeffs/numbers.h"
#include "kernel/polys.h"
#include "polys/monomials/ring.h"
Go to the source code of this file.
|
void | intrusive_ptr_add_ref (ring r) |
|
void | intrusive_ptr_release (ring r) |
|
Number | operator+ (const Number &n1, const Number &n2) |
|
Number | operator* (const Number &n1, const Number &n2) |
|
Number | operator- (const Number &n1, const Number &n2) |
|
Number | operator/ (const Number &n1, const Number &n2) |
|
bool | operator== (const Number &n1, const Number &n2) |
|
Number | operator+ (const Number &n1, int n2) |
|
Number | operator* (const Number &n1, int n2) |
|
Number | operator- (const Number &n1, int n2) |
|
Number | operator/ (const Number &n1, int n2) |
|
bool | operator== (const Number &n1, int n2) |
|
Number | operator+ (int n1, const Number &n2) |
|
Number | operator- (int n1, const Number &n2) |
|
Number | operator/ (int n1, const Number &n2) |
|
Number | operator* (int n1, const Number &n2) |
|
bool | operator== (int n1, const Number &n2) |
|
◆ poly_variant
Enumerator |
---|
POLY_VARIANT_RING | |
POLY_VARIANT_MODUL | |
Definition at line 24 of file Number.h.
◆ intrusive_ptr_add_ref()
void intrusive_ptr_add_ref |
( |
ring |
r | ) |
|
|
inline |
◆ intrusive_ptr_release()
void intrusive_ptr_release |
( |
ring |
r | ) |
|
|
inline |
Definition at line 14 of file Number.h.
15{
17 else
18 {
19 r->ref--;
20 }
21
22}
void rDelete(ring r)
unconditionally deletes fields in r
◆ operator*() [1/3]
Definition at line 227 of file Number.h.
228{
230 erg*=n2;
231 return erg;
232}
◆ operator*() [2/3]
Definition at line 257 of file Number.h.
258{
261 return erg;
262}
intrusive_ptr< ip_sring > r
◆ operator*() [3/3]
◆ operator+() [1/3]
Definition at line 221 of file Number.h.
222{
224 erg+=n2;
225 return erg;
226}
◆ operator+() [2/3]
Definition at line 251 of file Number.h.
252{
255 return erg;
256}
◆ operator+() [3/3]
◆ operator-() [1/3]
Definition at line 233 of file Number.h.
234{
236 erg-=n2;
237 return erg;
238}
◆ operator-() [2/3]
Definition at line 263 of file Number.h.
264{
267 return erg;
268}
◆ operator-() [3/3]
Definition at line 284 of file Number.h.
285{
287 return erg-=n2;
288}
◆ operator/() [1/3]
Definition at line 239 of file Number.h.
240{
242 erg/=n2;
243 return erg;
244}
◆ operator/() [2/3]
Definition at line 269 of file Number.h.
270{
273 return erg;
274}
◆ operator/() [3/3]
Definition at line 289 of file Number.h.
290{
292 return erg/=n2;
293}
◆ operator==() [1/3]
Definition at line 245 of file Number.h.
246{
248 return false;
250}
static FORCE_INLINE BOOLEAN n_Equal(number a, number b, const coeffs r)
TRUE iff 'a' and 'b' represent the same number; they may have different representations.
◆ operator==() [2/3]
◆ operator==() [3/3]