Changeset a204ea in git


Ignore:
Timestamp:
Jul 19, 1999, 12:50:43 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
460c1e191b2029d71d3c85f849b12944b8be0afa
Parents:
ee118eb43d8892eda3751061decc3bba5e1c72b9
Message:
*hannes: preimage works now also for qrings (maGetPreimage)


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

Legend:

Unmodified
Added
Removed
  • Singular/maps.cc

    ree118e ra204ea  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: maps.cc,v 1.15 1999-07-13 15:06:52 Singular Exp $ */
     4/* $Id: maps.cc,v 1.16 1999-07-19 10:50:43 Singular Exp $ */
    55/*
    66* ABSTRACT - the mapping of polynomials to other rings
     
    249249  else
    250250    j = IDELEMS(id);
     251  int j0=j;
     252  if (theImageRing->qideal!=NULL) j+=IDELEMS(theImageRing->qideal);
    251253  temp1 = idInit(sourcering->N+j,1);
    252254  for (i=0;i<sourcering->N;i++)
     
    267269    temp1->m[i] = p;
    268270  }
    269   for (i=sourcering->N;i<sourcering->N+j;i++)
     271  for (i=sourcering->N;i<sourcering->N+j0;i++)
    270272  {
    271273    temp1->m[i] = pChangeSizeOfPoly(theImageRing,
    272274                                    id->m[i-sourcering->N],1,imagepvariables);
     275  }
     276  for (i=sourcering->N+j0;i<sourcering->N+j;i++)
     277  {
     278    temp1->m[i] = pChangeSizeOfPoly(theImageRing,
     279                                    theImageRing->qideal->m[i-sourcering->N-j0],
     280                                    1,imagepvariables);
    273281  }
    274282  // we ignore here homogenity - may be changed later:
Note: See TracChangeset for help on using the changeset viewer.