Changeset e1375d in git for kernel/rmodulo2m.cc


Ignore:
Timestamp:
Apr 11, 2011, 12:23:48 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
526e40d402c852186bd63157812aa8c82bb611f6
Parents:
0f93f5f4a65af4c121349d23f99a0869a0a9be2d
Message:
changed mapping behaviour from Z/2^m*Z to Z/2^n*Z

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

Legend:

Unmodified
Added
Removed
  • kernel/rmodulo2m.cc

    r0f93f5 re1375d  
    468468number nr2mCopy(number a)
    469469{
    470   /* This method is obviously redundant. But in /kernel/maps.cc a check
    471      is performed whether nSetMap(some ring) and nCopy are identical
    472      function pointers. For that check to work correctly, we need to
    473      implement a version of nCopy for rings of the form Z/2^m*Z, i.e.
    474      this method. */
    475   return nr2mMapMachineInt(a);
     470  return a;
    476471}
    477472
     
    523518{
    524519  if (rField_is_Ring_2toM(src)
    525      && (src->ringflagb >= dst->ringflagb))
     520     && (src->ringflagb <= dst->ringflagb))
    526521  {
    527522    return nr2mCopy;
     523  }
     524  if (rField_is_Ring_2toM(src)
     525     && (src->ringflagb > dst->ringflagb))
     526  {
     527    return nr2mMapMachineInt;
    528528  }
    529529  if (rField_is_Ring_Z(src))
Note: See TracChangeset for help on using the changeset viewer.