Changeset 47faf56 in git for Singular/maps.cc


Ignore:
Timestamp:
Jan 12, 1998, 8:00:02 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
567aff6dba275744806617fcbb3253b828a9b5d1
Parents:
38cfbb50a8306b0a1da54ae6a6614ae8f4ecc643
Message:
* ring handling: from pChangeRing to rChangeCurrRing was prepared
* various fixes towards working COMP_FAST
* fixed gcd content problem of factory


git-svn-id: file:///usr/local/Singular/svn/trunk@1010 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/maps.cc

    r38cfbb r47faf56  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: maps.cc,v 1.6 1997-12-15 22:46:31 obachman Exp $ */
     4/* $Id: maps.cc,v 1.7 1998-01-12 18:59:50 obachman Exp $ */
    55/*
    66* ABSTRACT - the mapping of polynomials to other rings
     
    172172  sip_sring tmpR;
    173173
    174 //  pChangeRing(theImageRing->N,theImageRing->OrdSgn,theImageRing->order,theImageRing->blocks,theImageRing->wvhdl);
    175174  memset(block0, 0,sizeof(block0));
    176175  memset(block1, 0,sizeof(block1));
     
    203202  memset(wv,0,ordersize * sizeof(short **));
    204203  for (i--;i!=0 ;i--) wv[i+1] = sourcering->wvhdl[i];
    205   memset(&tmpR, 0, sizeof(sip_sring));
     204  tmpR = *currRing;
    206205  tmpR.N = N;
    207   tmpR.OrdSgn = currRing->OrdSgn;
    208206  tmpR.order = orders;
    209207  tmpR.block0 = block0;
     
    211209  tmpR.wvhdl = wv;
    212210  rComplete(&tmpR);
    213  
    214   pChangeRing(N,currRing->OrdSgn,orders,block0,block1, wv);
     211
     212  // change to new ring
     213  rChangeCurrRing(&tmpR, FALSE);
    215214  sizeofpoly = pMonomSize; /*POLYSIZE+sizeof(monomial);*/
    216215  if (id==NULL)
     
    248247    if (pLowVar(temp2->m[i])<imagepvariables) pDelete(&(temp2->m[i]));
    249248  }
    250   pChangeRing(sourcering->N,sourcering->OrdSgn,sourcering->order,
    251               sourcering->block0,sourcering->block1,sourcering->wvhdl);
     249
     250  // let's get back to the original ring
     251  rChangeCurrRing(sourcering, FALSE);
    252252  temp1 = idInit(5,1);
    253253  j = 0;
     
    411411  int *m=(int *)Alloc0(N*sizeof(int));
    412412
    413   pTest(p);
     413//  pTest(p);
    414414  while(p!=NULL)
    415415  {
Note: See TracChangeset for help on using the changeset viewer.