#include <Number.h>
|
class | Poly |
|
class | Vector |
|
template<poly_variant , class , class > |
class | PolyBase |
|
class | PolyImpl |
|
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) |
|
Definition at line 33 of file Number.h.
◆ Number() [1/6]
Definition at line 169 of file Number.h.
170 {
174 else
176 }
intrusive_ptr< ip_sring > r
static FORCE_INLINE number n_Init(long i, const coeffs r)
a number representing i in the given coeff field/ring r
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
◆ Number() [2/6]
Definition at line 177 of file Number.h.
178 {
181 }
static FORCE_INLINE number n_Copy(number n, const coeffs r)
return a copy of 'n'
◆ Number() [3/6]
Number::Number |
( |
number |
n, |
|
|
ring |
r |
|
) |
| |
|
inline |
◆ Number() [4/6]
Number::Number |
( |
int |
n, |
|
|
ring |
r |
|
) |
| |
|
inline |
◆ Number() [5/6]
Number::Number |
( |
int |
n, |
|
|
intrusive_ptr< ip_sring > |
r |
|
) |
| |
|
inline |
◆ Number() [6/6]
◆ ~Number()
Definition at line 207 of file Number.h.
208 {
211 }
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
◆ as_number()
number Number::as_number |
( |
| ) |
const |
|
inline |
◆ getRing()
ring Number::getRing |
( |
| ) |
const |
|
inline |
◆ operator*=() [1/2]
Definition at line 91 of file Number.h.
92 {
94 {
96 return *this;
97 }
101 return *this;
102 }
static FORCE_INLINE number n_Mult(number a, number b, const coeffs r)
return the product of 'a' and 'b', i.e., a*b
void WerrorS(const char *s)
◆ operator*=() [2/2]
Number & Number::operator*= |
( |
int |
n2 | ) |
|
|
inline |
Definition at line 142 of file Number.h.
143 {
144 number n2n=
n_Init(n2,
r.get()->cf);
145 number nv=
n_Mult(
n,n2n,
r.get()->cf);
149 return *this;
150 }
◆ operator+=() [1/2]
Definition at line 79 of file Number.h.
80 {
82 {
84 return *this;
85 }
89 return *this;
90 }
static FORCE_INLINE number n_Add(number a, number b, const coeffs r)
return the sum of 'a' and 'b', i.e., a+b
◆ operator+=() [2/2]
Number & Number::operator+= |
( |
int |
n2 | ) |
|
|
inline |
Definition at line 133 of file Number.h.
134 {
135 number n2n=
n_Init(n2,
r.get()->cf);
136 number nv=
n_Add(
n,n2n,
r.get()->cf);
140 return *this;
141 }
◆ operator-()
Definition at line 72 of file Number.h.
73 {
75
77 return t;
78 }
static FORCE_INLINE number n_InpNeg(number n, const coeffs r)
in-place negation of n MUST BE USED: n = n_InpNeg(n) (no copy is returned)
◆ operator-=() [1/2]
Definition at line 103 of file Number.h.
104 {
106 {
108 return *this;
109 }
110 number nv=
n_Sub(
n,n2.
n,
r.get()->cf);
113 return *this;
114 }
static FORCE_INLINE number n_Sub(number a, number b, const coeffs r)
return the difference of 'a' and 'b', i.e., a-b
◆ operator-=() [2/2]
Number & Number::operator-= |
( |
int |
n2 | ) |
|
|
inline |
Definition at line 151 of file Number.h.
152 {
153 number n2n=
n_Init(n2,
r.get()->cf);
154 number nv=
n_Sub(
n,n2n,
r.get()->cf);
158 return *this;
159 }
◆ operator/=() [1/2]
Definition at line 115 of file Number.h.
116 {
118 {
120 return *this;
121 }
122 number nv=
n_Div(
n,n2.
n,
r.get()->cf);
125 return *this;
126 }
static FORCE_INLINE number n_Div(number a, number b, const coeffs r)
return the quotient of 'a' and 'b', i.e., a/b; raises an error if 'b' is not invertible in r exceptio...
◆ operator/=() [2/2]
Number & Number::operator/= |
( |
int |
n2 | ) |
|
|
inline |
Definition at line 160 of file Number.h.
161 {
162 number n2n=
n_Init(n2,
r.get()->cf);
163 number nv=
n_Div(
n,n2n,
r.get()->cf);
167 return *this;
168 }
◆ operator=() [1/2]
Definition at line 63 of file Number.h.
64 {
65
66 number nc=
n_Copy(n2.
n,n2.
r.get()->cf);
70 return *this;
71 }
◆ operator=() [2/2]
Number & Number::operator= |
( |
int |
n2 | ) |
|
|
inline |
Definition at line 127 of file Number.h.
128 {
131 return *this;
132 }
◆ write()
void Number::write |
( |
| ) |
const |
|
inline |
Definition at line 202 of file Number.h.
203 {
206 }
static FORCE_INLINE void n_Write(number n, const coeffs r, const BOOLEAN bShortOut=TRUE)
◆ 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}
◆ 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]
◆ Poly
◆ PolyBase
◆ PolyImpl
◆ Vector
The documentation for this class was generated from the following file: