Changeset 9b1bb5c in git for libpolys


Ignore:
Timestamp:
Aug 15, 2018, 3:33:58 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
77b7a1075c63d0b12c707b6a719240d2b2fdf345
Parents:
0334da7d689c072c3ddd2bbfd0e14565f43da2d6
Message:
simplify transext.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r0334da r9b1bb5c  
    6161#define ADD_COMPLEXITY 1   /**< complexity increase due to + and - */
    6262#define MULT_COMPLEXITY 2   /**< complexity increase due to * and / */
    63 #define DIFF_COMPLEXITY 2   /**< complexity increase due to * and / */
     63#define DIFF_COMPLEXITY 2   /**< complexity increase due to diff */
    6464#define BOUND_COMPLEXITY 10   /**< maximum complexity of a number */
    6565
     
    10631063    if(da == NULL)
    10641064    { // both fa && fb are ?? // NULL!
    1065       assume (da == NULL && db == NULL);
    10661065      DEN(result) = NULL;
    10671066      COM(result) = 0;
     1067      p_Normalize(g,ntRing);
    10681068    }
    10691069    else
    10701070    {
    1071       assume (da != NULL && db == NULL);
    10721071      DEN(result) = p_Copy(da, ntRing);
    10731072      COM(result) = COM(fa) + MULT_COMPLEXITY;
     
    10801079    if (da == NULL)
    10811080    { // a == ? // NULL
    1082       assume( db != NULL && da == NULL);
    10831081      DEN(result) = p_Copy(db, ntRing);
    10841082      COM(result) = COM(fb) + MULT_COMPLEXITY;
     
    10881086    else /* both den's are != 1 */
    10891087    {
    1090       assume (da != NULL && db != NULL);
    10911088      DEN(result) = pp_Mult_qq(da, db, ntRing);
    10921089      COM(result) = COM(fa) + COM(fb) + MULT_COMPLEXITY;
Note: See TracChangeset for help on using the changeset viewer.