Changeset faa7df in git


Ignore:
Timestamp:
Jan 30, 2008, 3:28:16 PM (15 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
122981d0e106581ee4b7623ee3c76393fef4568a
Parents:
8e56ad409bb871477d7d51804d679aa766da743b
Message:
ipshell.cc:
ring (modpow, number, number) jetzt moeglich


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

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r8e56ad rfaa7df  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.173 2008-01-30 08:14:45 wienand Exp $ */
     4/* $Id: ipshell.cc,v 1.174 2008-01-30 14:28:16 wienand Exp $ */
    55/*
    66* ABSTRACT:
     
    44394439    ringtype = 2;
    44404440    ringflaga = module;
     4441    ringflagb = 1;
    44414442    WarnS("Z/n not yet fully tested");
    44424443  }
     
    44644465    }
    44654466    ch = exp;
    4466     if (base == 2)
     4467    if ((base == 2) && (exp + 2 <= 8*sizeof(NATNUMBER)))
    44674468    {
    44684469      ringtype = 1; // Use Z/2^ch
     
    44734474    else
    44744475    {
     4476      if ((base == 2) && (exp + 2 > 8*sizeof(NATNUMBER)))
     4477      {
     4478        Print("// exponent+2 is larger then number of bits in 'NATNUMBER' (%d bits)\n", 8*sizeof(NATNUMBER));
     4479        WarnS("==> using generic gmp implementation (restriction from design and NTL)");
     4480      }
    44754481      ringtype = 3;
    44764482      ringflaga = base;
    44774483      ringflagb = exp;
    4478       // ch = base**exp
    4479       Werror("p^n not yet implemented");
    4480       goto rInitError;
     4484      WarnS("Z/p^n not yet fully tested");
    44814485    }
    44824486  }
Note: See TracChangeset for help on using the changeset viewer.