Changeset 811826 in git


Ignore:
Timestamp:
Mar 9, 1999, 1:28:50 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
d78e6e2c82ab8bd96284f77386c71eff6908b71a
Parents:
41442f095ba5a5301108857c89ac604ccfdcf0f3
Message:
* maFindPerm: no permutation from Fq parameter to other vars/parameter
  (if they have the same name) -- r->ch new argument to maFindPerm.


git-svn-id: file:///usr/local/Singular/svn/trunk@2894 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/presolve.lib

    r41442f r811826  
    1 // $Id: presolve.lib,v 1.5 1998-05-14 18:45:12 Singular Exp $
     1// $Id: presolve.lib,v 1.6 1999-03-09 12:28:50 obachman Exp $
    22//system("random",787422842);
    33//(GMG), last modified 97/10/07 by GMG
    44///////////////////////////////////////////////////////////////////////////////
    55
    6 version="$Id: presolve.lib,v 1.5 1998-05-14 18:45:12 Singular Exp $";
     6version="$Id: presolve.lib,v 1.6 1999-03-09 12:28:50 obachman Exp $";
    77info="
    88LIBRARY:  presolve.lib     PROCEDURES FOR PRE-SOLVING POLYNOMIAL EQUATIONS
     
    7070"USAGE:   elimlinearpart(i[,n]);  i=ideal, n=integer
    7171RETURN:  list of of 5 objects:
    72          [1]: (interreduced) ideal obtained from i by eliminating (sbstituting)
     72         [1]: (interreduced) ideal obtained from i by eliminating (substituting)
    7373              from the first n variables those which appear in a linear part
    7474              of i, by putting this part into triangular form
  • Singular/fglm.cc

    r41442f r811826  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglm.cc,v 1.16 1999-03-08 18:11:39 Singular Exp $
     2// $Id: fglm.cc,v 1.17 1999-03-09 12:28:45 obachman Exp $
    33
    44/****************************************
     
    144144    else
    145145        pperm= NULL;
    146     maFindPerm( sring->names, nvar, sring->parameter, npar, dring->names, nvar, dring->parameter, npar, vperm, pperm );
     146    maFindPerm( sring->names, nvar, sring->parameter, npar,
     147                dring->names, nvar, dring->parameter, npar, vperm, pperm,
     148                dring->ch);
    147149    for ( k= nvar; (k > 0) && (state == FglmOk); k-- )
    148150        if ( vperm[k] <= 0 ) {
     
    181183        // check if dring->qideal is contained in sring->qideal:
    182184        int * dsvperm = (int *)Alloc0( (nvar+1)*sizeof( int ) );
    183         maFindPerm( dring->names, nvar, NULL, 0, sring->names, nvar, NULL, 0, dsvperm, NULL );
    184         nSetMap( rInternalChar(dring), dring->parameter, npar, dring->minpoly );
     185        maFindPerm( dring->names, nvar, NULL, 0, sring->names, nvar, NULL, 0,
     186                    dsvperm, NULL, sring->ch);
     187        nSetMap(rInternalChar(dring), dring->parameter, npar, dring->minpoly);
    185188        ideal dqins = idInit( IDELEMS( dring->qideal ), 1 );
    186189        for ( k= IDELEMS( dring->qideal )-1; k >= 0; k-- )
  • Singular/fglmhom.cc

    r41442f r811826  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmhom.cc,v 1.11 1998-09-24 09:59:39 Singular Exp $
     2// $Id: fglmhom.cc,v 1.12 1999-03-09 12:28:46 obachman Exp $
    33
    44/****************************************
     
    326326    // Map the sourceHeads to the destRing
    327327    int * vperm = (int *)Alloc( (sourceRing->N + 1)*sizeof(int) );
    328     maFindPerm( sourceRing->names, sourceRing->N, NULL, 0, currRing->names, currRing->N, NULL, 0, vperm, NULL );
     328    maFindPerm( sourceRing->names, sourceRing->N, NULL, 0, currRing->names,
     329                currRing->N, NULL, 0, vperm, NULL, currRing->ch);
    329330    nSetMap( sourceRing->ch, sourceRing->parameter, sourceRing->P, sourceRing->minpoly );
    330331    for ( s= IDELEMS( sourceIdeal ) - 1; s >= 0; s-- ) {
  • Singular/fglmzero.cc

    r41442f r811826  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmzero.cc,v 1.21 1999-03-08 18:11:41 Singular Exp $
     2// $Id: fglmzero.cc,v 1.22 1999-03-09 12:28:47 obachman Exp $
    33
    44/****************************************
     
    139139
    140140    int * perm = (int *)Alloc0( (_nfunc+1)*sizeof( int ) );
    141     maFindPerm( source->names, source->N, NULL, 0, currRing->names, currRing->N, NULL, 0, perm, NULL );
    142     nSetMap( rInternalChar(source), source->parameter,
    143        rPar(source), source->minpoly );
     141    maFindPerm( source->names, source->N, NULL, 0, currRing->names,
     142                currRing->N, NULL, 0, perm, NULL , currRing->ch);
     143    nSetMap( rInternalChar(source), source->parameter, source->P,
     144             source->minpoly );
    144145
    145146    matHeader ** temp = (matHeader **)Alloc( _nfunc*sizeof( matHeader * ));
  • Singular/ipshell.cc

    r41442f r811826  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.35 1999-03-08 18:11:46 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.36 1999-03-09 12:28:48 obachman Exp $ */
    55/*
    66* ABSTRACT:
     
    574574                 IDRING(r)->minpoly))
    575575    {
    576       Werror("map from characteristic %d to %d not implemented",
    577         rChar(IDRING(r)),rChar());
     576      Werror("can not map from ground field of %s to current ground field", theMap->preimage);
    578577      return NULL;
    579578    }
  • Singular/maps.cc

    r41442f r811826  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: maps.cc,v 1.13 1999-03-08 18:11:48 Singular Exp $ */
     4/* $Id: maps.cc,v 1.14 1999-03-09 12:28:49 obachman Exp $ */
    55/*
    66* ABSTRACT - the mapping of polynomials to other rings
     
    280280
    281281void maFindPerm(char **preim_names, int preim_n, char **preim_par, int preim_p,
    282                 char **names,       int n,       char **par,       int nop,
    283                 int * perm, int *par_perm)
     282                char **names,       int n,       char **par,       int nop, 
     283                int * perm, int *par_perm, int ch)
    284284{
    285285  int i,j;
     
    298298      }
    299299    }
    300     if ((perm[i+1]==0)&&(par!=NULL))
     300    if ((perm[i+1]==0)&&(par!=NULL)
     301        // do not consider par of Fq
     302         && (ch < 2))
    301303    {
    302304      for(j=0; j<nop; j++)
     
    354356  int *perm=(int *)Alloc0((r->N+1)*sizeof(int));
    355357  //int *par_perm=(int *)Alloc0(rPar(r)*sizeof(int));
    356   maFindPerm(r->names,r->N, r->parameter, rPar(r),
    357              currRing->names,currRing->N,currRing->parameter, rPar(currRing),
    358              perm,NULL/*par_perm*/);
     358  maFindPerm(r->names,r->N, r->parameter, r->P,
     359             currRing->names,currRing->N,currRing->parameter, currRing->P,
     360             perm,NULL, currRing->ch);
    359361  poly res=pPermPoly(p,perm,r/*,par_perm,rPar(r)*/);
    360362  Free((ADDRESS)perm,(r->N+1)*sizeof(int));
  • Singular/maps.h

    r41442f r811826  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: maps.h,v 1.6 1997-12-15 22:46:31 obachman Exp $ */
     6/* $Id: maps.h,v 1.7 1999-03-09 12:28:49 obachman Exp $ */
    77/*
    88* ABSTRACT - the mapping of polynomials to other rings
     
    2222void maFindPerm(char **preim_names, int preim_n, char **preim_par, int preim_p,
    2323                char **names,       int n,       char **par,       int nop,
    24                 int * perm, int *par_perm);
     24                int * perm, int *par_perm, int ch);
    2525#endif
Note: See TracChangeset for help on using the changeset viewer.