Changeset 54b516 in git


Ignore:
Timestamp:
Jul 17, 2020, 5:48:57 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd25190065115c859833252500a64cfb7b11e3a50')
Children:
3b1cda3853034c56d558fdc2e89453a9d4d7c14d
Parents:
97abdf65859c287ee9535a8a7ba44e0e9406bfe9
Message:
code cleanup: tgb_interanl.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/tgb_internal.h

    r97abdf6 r54b516  
    6666#include "kernel/GBEngine/kInline.h"
    6767#include "kernel/GBEngine/kstd1.h"
    68 
    69 
    70 #define npNeg npNegM
    71 #define npInvers npInversM
    7268
    7369#include "coeffs/modulop_inl.h" // npInit, npMult
     
    774770    poly exp_diff=cache->temp_term;
    775771    p_ExpVectorDiff(exp_diff,t,c->strat->S[i],c->r);
    776     p_SetCoeff(exp_diff,npNeg(npInvers(coefstrat,c->r->cf),c->r->cf),c->r);
     772    p_SetCoeff(exp_diff,npNegM(npInversM(coefstrat,c->r->cf),c->r->cf),c->r);
    777773    p_Setm(exp_diff,c->r);
    778774    assume(c->strat->S[i]!=NULL);
     
    15721568    assume(!(npIsZero((number)(long) row_array[start],currRing->cf)));
    15731569    if (!(npIsOne((number)(long) coef,currRing->cf)))
    1574       multiplyRow(r,F4mat_to_number_type(npInvers((number)(long) coef,currRing->cf)));
     1570      multiplyRow(r,F4mat_to_number_type(npInversM((number)(long) coef,currRing->cf)));
    15751571    assume(npIsOne((number)(long) row_array[start],currRing->cf));
    15761572    int lastIndex=modP_lastIndexRow(row_array, ncols);
     
    15851581          int i;
    15861582          number_type* other_row_array=rows[other_row];
    1587           number coef2=npNeg((number)(long) other_row_array[start],currRing->cf);
     1583          number coef2=npNegM((number)(long) other_row_array[start],currRing->cf);
    15881584          if (coef2==minus_one)
    15891585          {
     
    16201616          int i;
    16211617          number_type* other_row_array=rows[other_row];
    1622           number coef2=npNeg((number)(long) other_row_array[start],currRing->cf);
     1618          number coef2=npNegM((number)(long) other_row_array[start],currRing->cf);
    16231619          if (coef2==minus_one)
    16241620          {
     
    17791775    {
    17801776      //it should be one, but this safety is not expensive
    1781       multiplyRow(r, F4mat_to_number_type(npInvers((number)(long) row_array[start],currRing->cf)));
     1777      multiplyRow(r, F4mat_to_number_type(npInversM((number)(long) row_array[start],currRing->cf)));
    17821778    }
    17831779    int lastIndex=modP_lastIndexRow(row_array, ncols);
     
    17921788        {
    17931789          number_type* other_row_array=rows[other_row];
    1794           number coef=npNeg((number)(long) other_row_array[start],currRing->cf);
     1790          number coef=npNegM((number)(long) other_row_array[start],currRing->cf);
    17951791          assume(!(npIsZero(coef,currRing->cf)));
    17961792          int i;
     
    18151811        {
    18161812          number_type* other_row_array=rows[other_row];
    1817           number coef=npNeg((number)(long) other_row_array[start],currRing->cf);
     1813          number coef=npNegM((number)(long) other_row_array[start],currRing->cf);
    18181814          assume(!(npIsZero(coef,currRing->cf)));
    18191815          int i;
Note: See TracChangeset for help on using the changeset viewer.