Changeset 634c98 in git


Ignore:
Timestamp:
Feb 20, 2001, 10:45:44 AM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
367e88ed423dc4fe709d7c0e9346e03ea9a03baa
Parents:
25c431d26faee1a17b854e49114f755c02aaf1ef
Message:
*hannes: imap error


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

Legend:

Unmodified
Added
Removed
  • Singular/longalg.cc

    r25c431 r634c98  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.58 2001-01-20 12:38:41 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.59 2001-02-20 09:45:44 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    26792679  poly p;
    26802680  napoly za=((lnumber)z)->z;
     2681  nMapFunc nMap=NULL;
     2682  if (currRing->parameter!=NULL)
     2683    nMap=currRing->algring->cf->cfSetMap(r->algring, currRing->algring);
     2684  else
     2685    nMap=currRing->cf->cfSetMap(r->algring, currRing);
     2686  if (nMap==NULL) return NULL; /* emergency exit only */
    26812687  do
    26822688  {
     
    26912697    if (currRing->parameter!=NULL)
    26922698    {
     2699      assume(r->algring!=NULL);
    26932700      pGetCoeff(p)=(number)omAlloc0Bin(rnumber_bin);
    26942701      ((lnumber)pGetCoeff(p))->s=2;
    2695       ((lnumber)pGetCoeff(p))->z=napInitz(nacCopy(napGetCoeff(za)));
     2702      ((lnumber)pGetCoeff(p))->z=napInitz(nMap(napGetCoeff(za)));
    26962703      pa=((lnumber)pGetCoeff(p))->z;
    26972704    }
    26982705    else
    26992706    {
    2700       pGetCoeff(p)=nCopy(napGetCoeff(za));
     2707      pGetCoeff(p)=nMap(napGetCoeff(za));
    27012708    }
    27022709    for(i=0;i<P;i++)
  • Singular/numbers.cc

    r25c431 r634c98  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: numbers.cc,v 1.39 2001-01-30 13:37:04 Singular Exp $ */
     4/* $Id: numbers.cc,v 1.40 2001-02-20 09:45:43 Singular Exp $ */
    55
    66/*
     
    254254    r->cf->nGcd        = naGcd;
    255255    r->cf->nLcm        = naLcm;
    256     r->cf->nSetMap     = naSetMap;
     256    r->cf->cfSetMap    = naSetMap;
    257257    r->cf->nName       = naName;
    258258    r->cf->nSize       = naSize;
     
    290290    r->cf->nGcd  = nlGcd;
    291291    r->cf->nLcm  = nlLcm;
    292     r->cf->nSetMap = nlSetMap;
     292    r->cf->cfSetMap = nlSetMap;
    293293    r->cf->nSize  = nlSize;
    294294    r->cf->nGetDenom = nlGetDenom;
     
    325325    r->cf->nGcd  = ndGcd;
    326326    r->cf->nLcm  = ndGcd; /* tricky, isn't it ?*/
    327     r->cf->nSetMap = npSetMap;
     327    r->cf->cfSetMap = npSetMap;
    328328    /* nName= ndName; */
    329329    /*nSize  = ndSize;*/
     
    362362    r->cf->nGcd  = ndGcd;
    363363    r->cf->nLcm  = ndGcd; /* tricky, isn't it ?*/
    364     r->cf->nSetMap = nfSetMap;
     364    r->cf->cfSetMap = nfSetMap;
    365365    r->cf->nName= nfName;
    366366    /*nSize  = ndSize;*/
     
    397397    r->cf->nGcd  = ndGcd;
    398398    r->cf->nLcm  = ndGcd; /* tricky, isn't it ?*/
    399     r->cf->nSetMap=nrSetMap;
     399    r->cf->cfSetMap=nrSetMap;
    400400    /* nName= ndName; */
    401401    /*nSize  = ndSize;*/
     
    433433    r->cf->nGcd  = ndGcd;
    434434    r->cf->nLcm  = ndGcd; /* tricky, isn't it ?*/
    435     r->cf->nSetMap=ngfSetMap;
     435    r->cf->cfSetMap=ngfSetMap;
    436436    r->cf->nName= ndName;
    437437    r->cf->nSize  = ndSize;
     
    469469    r->cf->nGcd  = ndGcd;
    470470    r->cf->nLcm  = ndGcd; /* tricky, isn't it ?*/
    471     r->cf->nSetMap=ngcSetMap;
     471    r->cf->cfSetMap=ngcSetMap;
    472472    r->cf->nPar=ngcPar;
    473473    r->cf->nRePart=ngcRePart;
  • Singular/numbers.h

    r25c431 r634c98  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: numbers.h,v 1.25 2001-01-18 16:54:19 Singular Exp $ */
     6/* $Id: numbers.h,v 1.26 2001-02-20 09:45:44 Singular Exp $ */
    77/*
    88* ABSTRACT: interface to coefficient aritmetics
     
    6464#define nDelete(A) (currRing)->cf->cfDelete(A,currRing)
    6565
    66 #define nSetMap(R) (currRing->cf->nSetMap(R,currRing))
     66#define nSetMap(R) (currRing->cf->cfSetMap(R,currRing))
    6767extern char *  (*nName)(number n);
    6868
  • Singular/structs.h

    r25c431 r634c98  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: structs.h,v 1.56 2001-02-01 21:19:54 obachman Exp $ */
     6/* $Id: structs.h,v 1.57 2001-02-20 09:45:43 Singular Exp $ */
    77/*
    88* ABSTRACT
     
    250250   number  (*nLcm)(number a, number b, const ring r);
    251251   void    (*cfDelete)(number * a, const ring r);
    252    nMapFunc (*nSetMap)(ring src, ring dst);
     252   nMapFunc (*cfSetMap)(ring src, ring dst);
    253253   char *  (*nName)(number n);
    254254//extern number  (*nMap)(number from);
Note: See TracChangeset for help on using the changeset viewer.