Go to the source code of this file.
|
| poly | maEval (map theMap, poly p, ring preimage_r, nMapFunc nMap, ideal s, const ring dst_r) |
| |
| map | maCopy (map theMap, const ring dst_ring) |
| |
| poly | maIMap (ring src_ring, ring dst_ring, poly p) |
| |
| void | maFindPerm (char const *const *const preim_names, int preim_n, char const *const *const preim_par, int preim_p, char const *const *const names, int n, char const *const *const par, int nop, int *perm, int *par_perm, n_coeffType ch) |
| |
| void | maFindPermLP (char const *const *const preim_names, int preim_n, char const *const *const preim_par, int preim_p, char const *const *const names, int n, char const *const *const par, int nop, int *perm, int *par_perm, n_coeffType ch, int lV) |
| |
| void | maFetchPermLP (const ring preimage_r, const ring dst_r, int *perm) |
| |
| poly | pSubstPoly (poly p, int var, poly image) |
| |
| ideal | idSubstPoly (ideal id, int n, poly e) |
| |
| poly | p_MinPolyNormalize (poly p, const ring r) |
| |
| int | maMaxDeg_P (poly p, ring preimage_r) |
| |
| int | maMaxDeg_Ma (ideal a, ring preimage_r) |
| |
| poly | maEvalVariable (poly p, int v, int pExp, ideal s, const ring dst_r) |
| |
◆ idSubstPoly()
Definition at line 425 of file maps_ip.cc.
426{
427
428#ifdef HAVE_PLURAL
430 {
433 res->rank =
id->rank;
435 {
437 }
439 }
440#endif
441#ifdef HAVE_SHIFTBBA
443 {
446 res->rank =
id->rank;
448 {
450 }
452 }
453#endif
455}
number ndCopyMap(number a, const coeffs src, const coeffs dst)
ideal id_SubstPoly(ideal id, int var, poly image, const ring preimage_r, const ring image_r, const nMapFunc nMap)
matrix mpNew(int r, int c)
create a r x c zero-matrix
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define pCopy(p)
return a copy of the poly
static BOOLEAN rIsPluralRing(const ring r)
we must always have this test!
static BOOLEAN rIsLPRing(const ring r)
◆ maCopy()
Definition at line 34 of file maps.cc.
35{
42}
CanonicalForm map(const CanonicalForm &primElem, const Variable &alpha, const CanonicalForm &F, const Variable &beta)
map from to such that is mapped onto
static poly p_Copy(poly p, const ring r)
returns a copy of p
ideal idInit(int idsize, int rank)
initialise an ideal / module
◆ maEval()
Definition at line 117 of file maps.cc.
118{
121
122
123
124
125
126
127
128
129
130
131
133 {
136
138 {
143 }
145
148
151 }
153}
static FORCE_INLINE BOOLEAN nCoeff_is_algExt(const coeffs r)
TRUE iff r represents an algebraic extension field.
const CanonicalForm int s
static poly maEvalMonom(map theMap, poly p, ring preimage_r, ideal s, nMapFunc nMap, const ring dst_r)
poly p_MinPolyNormalize(poly p, const ring r)
static int pLength(poly a)
void sBucket_Add_p(sBucket_pt bucket, poly p, int length)
adds poly p to bucket destroys p!
sBucket_pt sBucketCreate(const ring r)
void sBucketDestroyAdd(sBucket_pt bucket, poly *p, int *length)
◆ maEvalVariable()
Definition at line 48 of file maps.cc.
49{
52
54
56 {
59
61 {
63 }
64 else
65 {
67 {
69 }
71 }
72
74 {
77 }
79 }
80 else
81 {
83 }
85}
const Variable & v
< [in] a sqrfree bivariate poly
#define MATELEM(mat, i, j)
1-based access to matrix
poly p_Power(poly p, int i, const ring r)
void p_Normalize(poly p, const ring r)
static poly pp_Mult_qq(poly p, poly q, const ring r)
◆ maFetchPermLP()
Definition at line 298 of file maps.cc.
300{
302
305
308
311
312
314 {
315
317 {
319 }
320
321
323 {
325 }
326 }
327}
static int si_min(const int a, const int b)
◆ maFindPerm()
| void maFindPerm |
( |
char const *const *const |
preim_names, |
|
|
int |
preim_n, |
|
|
char const *const *const |
preim_par, |
|
|
int |
preim_p, |
|
|
char const *const *const |
names, |
|
|
int |
n, |
|
|
char const *const *const |
par, |
|
|
int |
nop, |
|
|
int * |
perm, |
|
|
int * |
par_perm, |
|
|
n_coeffType |
ch |
|
) |
| |
Definition at line 155 of file maps.cc.
158{
160
162 {
164 {
166 {
169
171 break;
172 }
173 }
175
177 {
179 {
181 {
184
186 }
187 }
188 }
189 }
191 {
193 {
195 {
197 {
200
202 break;
203 }
204 }
206 {
208 {
210 {
213
215 }
216 }
217 }
218 }
219 }
220}
◆ maFindPermLP()
| void maFindPermLP |
( |
char const *const *const |
preim_names, |
|
|
int |
preim_n, |
|
|
char const *const *const |
preim_par, |
|
|
int |
preim_p, |
|
|
char const *const *const |
names, |
|
|
int |
n, |
|
|
char const *const *const |
par, |
|
|
int |
nop, |
|
|
int * |
perm, |
|
|
int * |
par_perm, |
|
|
n_coeffType |
ch, |
|
|
int |
lV |
|
) |
| |
Definition at line 223 of file maps.cc.
226{
228
230 {
232 {
233 int cnt=0;
235 {
237 {
239 {
242
244 break;
245 }
246 else cnt++;
247 }
248 }
250
252 {
254 {
256 {
259
261 }
262 }
263 }
264 }
265 }
267 {
269 {
271 {
273 {
276
278 break;
279 }
280 }
282 {
284 {
286 {
289
291 }
292 }
293 }
294 }
295 }
296}
◆ maIMap()
| poly maIMap |
( |
ring |
src_ring, |
|
|
ring |
dst_ring, |
|
|
poly |
p |
|
) |
| |
◆ maMaxDeg_Ma()
Definition at line 352 of file maps.cc.
353{
358
360 {
362
364 {
366 {
369 {
372 }
373 }
375 }
376 }
379 {
381 }
385}
static int si_max(const int a, const int b)
const CanonicalForm CFMap CFMap & N
#define omFreeSize(addr, size)
static long p_GetExp(const poly p, const unsigned long iBitmask, const int VarOffset)
get a single variable exponent @Note: the integer VarOffset encodes:
◆ maMaxDeg_P()
| int maMaxDeg_P |
( |
poly |
p, |
|
|
ring |
preimage_r |
|
) |
| |
Definition at line 390 of file maps.cc.
391{
395
396
398 {
400 {
403 {
406 }
407 }
409 }
412 {
414 }
418}
◆ p_MinPolyNormalize()
| poly p_MinPolyNormalize |
( |
poly |
p, |
|
|
const ring |
r |
|
) |
| |
Definition at line 422 of file maps.cc.
423{
427
429
431 {
432
435 {
437 }
438 else
439 {
444 }
445 }
449}
static FORCE_INLINE number n_Mult(number a, number b, const coeffs r)
return the product of 'a' and 'b', i.e., a*b
static FORCE_INLINE BOOLEAN n_IsZero(number n, const coeffs r)
TRUE iff 'n' represents the zero element.
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
static FORCE_INLINE number n_Init(long i, const coeffs r)
a number representing i in the given coeff field/ring r
The main handler for Singular numbers which are suitable for Singular polynomials.
static void p_LmDelete(poly p, const ring r)
static number p_SetCoeff(poly p, number n, ring r)
◆ pSubstPoly()
| poly pSubstPoly |
( |
poly |
p, |
|
|
int |
var, |
|
|
poly |
image |
|
) |
| |
Definition at line 403 of file maps_ip.cc.
404{
406#ifdef HAVE_PLURAL
408 {
410 }
411#endif
412#ifdef HAVE_SHIFTBBA
414 {
416 }
417#endif
419}
poly p_SubstPoly(poly p, int var, poly image, const ring preimage_r, const ring image_r, const nMapFunc nMap, matrix cache=NULL)