Changeset d8e89b in git


Ignore:
Timestamp:
Mar 26, 2019, 2:16:42 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
a0351f4ddb55f888234786beb265c2d73504e810
Parents:
66824999f4f8f37eea466e691f6dd16bac89a057
Message:
fix: mpz_t to long_R/C conversions
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/gnumpc.cc

    r668249 rd8e89b  
    520520}
    521521
     522static number ngcInitMPZ(mpz_t m, const coeffs)
     523{
     524  gmp_float mm(m);
     525  gmp_complex* res = new gmp_complex(mm);
     526  return (number)res;
     527}
     528
     529
    522530static nMapFunc ngcSetMap(const coeffs src, const coeffs dst)
    523531{
     
    565573  n->cfDelete  = ngcDelete;
    566574  //n->cfNormalize=ndNormalize;
    567   n->cfInit   = ngcInit;
    568   n->cfInt    = ngcInt;
     575  n->cfInit    = ngcInit;
     576  n->cfInitMPZ = ngcInitMPZ;
     577  n->cfInt     = ngcInt;
    569578  n->cfAdd     = ngcAdd;
    570579  n->cfSub     = ngcSub;
  • libpolys/coeffs/gnumpfl.cc

    r668249 rd8e89b  
    469469}
    470470
     471static number ngfInitMPZ(mpz_t m, const coeffs)
     472{
     473  gmp_float *res=new gmp_float(m);
     474  return (number)res;
     475}
     476
    471477static nMapFunc ngfSetMap(const coeffs src, const coeffs dst)
    472478{
     
    522528  n->cfDelete  = ngfDelete;
    523529  //n->cfNormalize=ndNormalize;
    524   n->cfInit   = ngfInit;
    525   n->cfInt    = ngfInt;
     530  n->cfInit    = ngfInit;
     531  n->cfInitMPZ = ngfInitMPZ;
     532  n->cfInt     = ngfInt;
    526533  n->cfAdd     = ngfAdd;
    527534  n->cfSub     = ngfSub;
Note: See TracChangeset for help on using the changeset viewer.