Changeset 2f3764 in git


Ignore:
Timestamp:
Feb 23, 2012, 5:17:24 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
9a78ebefab412005398f3ada5901ac617d94e649
Parents:
02fe5fbd39da06e8eb01f3f24ef8e94a6334fcce
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-23 17:17:24+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-23 20:35:10+01:00
Message:
n_Init and p_ISet take a "long" (instead of "int") argument
Location:
libpolys
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r02fe5f r2f3764  
    113113   
    114114   /// init with an integer
    115    number  (*cfInit)(int i,const coeffs r);
     115   number  (*cfInit)(long i,const coeffs r);
    116116
    117117   /// init with a GMP integer
     
    404404
    405405/// a number representing i in the given coeff field/ring r
    406 static inline number n_Init(int i,       const coeffs r)
     406static inline number n_Init(long i,       const coeffs r)
    407407{ assume(r != NULL); assume(r->cfInit!=NULL); return r->cfInit(i,r); }
    408408
  • libpolys/coeffs/ffields.cc

    r02fe5f r2f3764  
    160160* int -> number
    161161*/
    162 number nfInit (int i, const coeffs r)
     162number nfInit (long i, const coeffs r)
    163163{
    164164  assume( r->m_nfPlus1Table != NULL );
  • libpolys/coeffs/ffields.h

    r02fe5f r2f3764  
    1414BOOLEAN nfGreaterZero (number k, const coeffs r);
    1515number  nfMult        (number a, number b, const coeffs r);
    16 number  nfInit        (int i, const coeffs r);
     16number  nfInit        (long i, const coeffs r);
    1717number  nfPar         (int i, const coeffs r);
    1818int     nfParDeg      (number n, const coeffs r);
  • libpolys/coeffs/gnumpc.cc

    r02fe5f r2f3764  
    5252* n := i
    5353*/
    54 number ngcInit (int i, const coeffs r)
     54number ngcInit (long i, const coeffs r)
    5555{
    5656  assume( getCoeffType(r) == ID );
  • libpolys/coeffs/gnumpc.h

    r02fe5f r2f3764  
    2727BOOLEAN  ngcIsMOne(number a, const coeffs r);
    2828BOOLEAN  ngcIsZero(number za, const coeffs r);
    29 number   ngcInit(int i, const coeffs r);
     29number   ngcInit(long i, const coeffs r);
    3030int      ngcInt(number &n, const coeffs r);
    3131number   ngcNeg(number za, const coeffs r);
  • libpolys/coeffs/gnumpfl.cc

    r02fe5f r2f3764  
    4040* n := i
    4141*/
    42 number ngfInit (int i, const coeffs r)
     42number ngfInit (long i, const coeffs r)
    4343{
    4444  assume( getCoeffType(r) == ID );
  • libpolys/coeffs/gnumpfl.h

    r02fe5f r2f3764  
    2626BOOLEAN  ngfIsMOne(number a, const coeffs r);
    2727BOOLEAN  ngfIsZero(number za, const coeffs r);
    28 number   ngfInit(int i, const coeffs r);
     28number   ngfInit(long i, const coeffs r);
    2929int      ngfInt(number &n, const coeffs r);
    3030number   ngfNeg(number za, const coeffs r);
  • libpolys/coeffs/longrat.cc

    r02fe5f r2f3764  
    22262226
    22272227// declare immedate routines
    2228 number nlRInit (int i);
     2228number nlRInit (long i);
    22292229BOOLEAN _nlEqual_aNoImm_OR_bNoImm(number a, number b);
    22302230number  _nlCopy_NoImm(number a);
     
    22592259}
    22602260
    2261 LINLINE number nlInit (int i, const coeffs r)
     2261LINLINE number nlInit (long i, const coeffs r)
    22622262{
    22632263  number n;
  • libpolys/coeffs/longrat.h

    r02fe5f r2f3764  
    4545
    4646LINLINE BOOLEAN  nlEqual(number a, number b, const coeffs r);
    47 LINLINE number   nlInit(int i, const coeffs r);
     47LINLINE number   nlInit(long i, const coeffs r);
    4848number nlRInit (long i);
    4949LINLINE BOOLEAN  nlIsOne(number a, const coeffs r);
  • libpolys/coeffs/modulop.cc

    r02fe5f r2f3764  
    8383* create a number from int
    8484*/
    85 number npInit (int i, const coeffs r)
     85number npInit (long i, const coeffs r)
    8686{
    8787  long ii=i;
  • libpolys/coeffs/modulop.h

    r02fe5f r2f3764  
    2828BOOLEAN npGreaterZero (number k, const coeffs r);
    2929number  npMult        (number a, number b, const coeffs r);
    30 number  npInit        (int i, const coeffs r);
     30number  npInit        (long i, const coeffs r);
    3131int     npInt         (number &n, const coeffs r);
    3232number  npAdd         (number a, number b,const coeffs r);
  • libpolys/coeffs/rintegers.cc

    r02fe5f r2f3764  
    9090 * create a number from int
    9191 */
    92 number nrzInit (int i, const coeffs)
     92number nrzInit (long i, const coeffs)
    9393{
    9494  int_number erg = (int_number) omAllocBin(gmp_nrz_bin);
  • libpolys/coeffs/rintegers.h

    r02fe5f r2f3764  
    2020BOOLEAN nrzGreaterZero (number k, const coeffs r);
    2121number  nrzMult        (number a, number b, const coeffs r);
    22 number  nrzInit        (int i, const coeffs r);
     22number  nrzInit        (long i, const coeffs r);
    2323int     nrzInt         (number &n, const coeffs r);
    2424number  nrzAdd         (number a, number b, const coeffs r);
  • libpolys/coeffs/rmodulo2m.cc

    r02fe5f r2f3764  
    201201 * create a number from int
    202202 */
    203 number nr2mInit(int i, const coeffs r)
     203number nr2mInit(long i, const coeffs r)
    204204{
    205205  if (i == 0) return (number)(NATNUMBER)i;
  • libpolys/coeffs/rmodulo2m.h

    r02fe5f r2f3764  
    2222BOOLEAN nr2mGreaterZero (number k, const coeffs r);
    2323number  nr2mMult        (number a, number b, const coeffs r);
    24 number  nr2mInit        (int i, const coeffs r);
     24number  nr2mInit        (long i, const coeffs r);
    2525int     nr2mInt         (number &n, const coeffs r);
    2626number  nr2mAdd         (number a, number b, const coeffs r);
  • libpolys/coeffs/rmodulon.cc

    r02fe5f r2f3764  
    100100 * create a number from int
    101101 */
    102 number nrnInit(int i, const coeffs r)
     102number nrnInit(long i, const coeffs r)
    103103{
    104104  int_number erg = (int_number) omAllocBin(gmp_nrz_bin);
  • libpolys/coeffs/rmodulon.h

    r02fe5f r2f3764  
    2222BOOLEAN nrnGreaterZero (number k, const coeffs r);
    2323number  nrnMult        (number a, number b, const coeffs r);
    24 number  nrnInit        (int i, const coeffs r);
     24number  nrnInit        (long i, const coeffs r);
    2525int     nrnInt         (number &n, const coeffs r);
    2626number  nrnAdd         (number a, number b, const coeffs r);
  • libpolys/coeffs/shortfl.cc

    r02fe5f r2f3764  
    7171* create a number from int
    7272*/
    73 number nrInit (int i, const coeffs r)
     73number nrInit (long i, const coeffs r)
    7474{
    7575  assume( getCoeffType(r) == ID );
  • libpolys/coeffs/shortfl.h

    r02fe5f r2f3764  
    2121BOOLEAN nrGreaterZero (number k, const coeffs r);
    2222number  nrMult        (number a, number b, const coeffs r);
    23 number  nrInit        (int i, const coeffs r);
     23number  nrInit        (long i, const coeffs r);
    2424int     nrInt         (number &n, const coeffs r);
    2525number  nrAdd         (number a, number b, const coeffs r);
  • libpolys/polys/ext_fields/algext.cc

    r02fe5f r2f3764  
    8282BOOLEAN  naIsMOne(number a, const coeffs cf);
    8383BOOLEAN  naIsZero(number a, const coeffs cf);
    84 number   naInit(int i, const coeffs cf);
     84number   naInit(long i, const coeffs cf);
    8585int      naInt(number &a, const coeffs cf);
    8686number   naNeg(number a, const coeffs cf);
     
    253253
    254254
    255 number naInit(int i, const coeffs cf)
     255number naInit(long i, const coeffs cf)
    256256{
    257257  if (i == 0) return NULL;
  • libpolys/polys/ext_fields/algext.h

    r02fe5f r2f3764  
    5353BOOLEAN  naIsMOne(number a, const coeffs cf);
    5454BOOLEAN  naIsZero(number a, const coeffs cf);
    55 number   naInit(int i, const coeffs cf);
     55number   naInit(long i, const coeffs cf);
    5656int      naInt(number &a, const coeffs cf);
    5757number   naNeg(number a, const coeffs cf);
  • libpolys/polys/ext_fields/transext.cc

    r02fe5f r2f3764  
    100100BOOLEAN  ntIsMOne(number a, const coeffs cf);
    101101BOOLEAN  ntIsZero(number a, const coeffs cf);
    102 number   ntInit(int i, const coeffs cf);
     102number   ntInit(long i, const coeffs cf);
    103103int      ntInt(number &a, const coeffs cf);
    104104number   ntNeg(number a, const coeffs cf);
     
    336336
    337337   
    338 number ntInit(int i, const coeffs cf)
     338number ntInit(long i, const coeffs cf)
    339339{
    340340  if (i == 0) return NULL;
  • libpolys/polys/ext_fields/transext.h

    r02fe5f r2f3764  
    105105BOOLEAN  ntIsMOne(number a, const coeffs cf);
    106106BOOLEAN  ntIsZero(number a, const coeffs cf);
    107 number   ntInit(int i, const coeffs cf);
     107number   ntInit(long i, const coeffs cf);
    108108int      ntInt(number &a, const coeffs cf);
    109109number   ntNeg(number a, const coeffs cf);
  • libpolys/polys/monomials/p_polys.cc

    r02fe5f r2f3764  
    11561156* returns a polynomial representing the integer i
    11571157*/
    1158 poly p_ISet(int i, const ring r)
     1158poly p_ISet(long i, const ring r)
    11591159{
    11601160  poly rc = NULL;
  • libpolys/polys/monomials/p_polys.h

    r02fe5f r2f3764  
    116116
    117117/// returns the poly representing the integer i
    118 poly      p_ISet(int i, const ring r);
     118poly      p_ISet(long i, const ring r);
    119119
    120120/// returns the poly representing the number n, destroys n
Note: See TracChangeset for help on using the changeset viewer.