56 while((i<currRing->
N)&&(perm[
i]==0))
i++;
63 if (perm[prev_nonnull] > perm[
i])
67 Warn(
"imap not usable for permuting variables, use map (%s <-> %s)",
currRing->names[prev_nonnull-1],
currRing->names[
i-1]);
79 int N = preimage_r->N;
85 if (par_perm!=
NULL)
for(
i=0;
i<P;
i++)
Print(
"%d -> %d ",
i,par_perm[
i]);
106 number a = nMap((number)data, preimage_r->cf,
currRing->cf);
148 p_Test((poly)data,preimage_r);
160 int C=((
matrix)data)->cols();
168 tmpR=((
map)data)->preimage;
173 for (
i=
R*C-1;
i>=0;
i--)
181 for (
i=
R*C-1;
i>=0;
i--)
184 nMap,par_perm,P,use_mult);
192 for (
i=
R*C-1;
i>=0;
i--)
201 for (
i=
R*C-1;
i>=0;
i--)
209 ((
map)data)->preimage=tmpR;
226 for(
i=0;
i<=
l->nr;
i++)
232 preimage_r,perm,par_perm,P,nMap))
245 res->data=(
char *)ml;
const CanonicalForm CFMap CFMap & N
CanonicalForm map(const CanonicalForm &primElem, const Variable &alpha, const CanonicalForm &F, const Variable &beta)
map from to such that is mapped onto
void Clean(ring r=currRing)
INLINE_THIS void Init(int l=0)
static FORCE_INLINE BOOLEAN nCoeff_is_Extension(const coeffs r)
#define n_Test(a, r)
BOOLEAN n_Test(number a, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_algExt(const coeffs r)
TRUE iff r represents an algebraic extension field.
static FORCE_INLINE void n_Normalize(number &n, const coeffs r)
inplace-normalization of n; produces some canonical representation of n;
const CanonicalForm int s
poly maMapPoly(const poly map_p, const ring map_r, const ideal image_id, const ring image_r, const nMapFunc nMap)
polynomial map for poly (vector) map_p: the poly (vector) to map map_r: the base ring for map_p image...
const char * Tok2Cmdname(int tok)
#define idDelete(H)
delete an ideal
poly maEval(map theMap, poly p, ring preimage_r, nMapFunc nMap, ideal s, const ring dst_r)
int maMaxDeg_Ma(ideal a, ring preimage_r)
poly p_MinPolyNormalize(poly p, const ring r)
BOOLEAN maApplyFetch(int what, map theMap, leftv res, leftv w, ring preimage_r, int *perm, int *par_perm, int P, nMapFunc nMap)
#define omFreeBin(addr, bin)
poly n_PermNumber(const number z, const int *par_perm, const int, const ring src, const ring dst)
poly p_PermPoly(poly p, const int *perm, const ring oldRing, const ring dst, nMapFunc nMap, const int *par_perm, int OldPar, BOOLEAN use_mult)
poly prCopyR(poly p, ring src_r, ring dest_r)
void PrintS(const char *s)
poly sBucketPeek(sBucket_pt b)