Changeset 4946e3 in git for factory/facAbsBiFact.cc


Ignore:
Timestamp:
Jul 3, 2020, 1:03:03 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
175dfbe8022a34e8c7eab0e37ca15b932dbcb243
Parents:
f3adf3a165dd0f173fe615a55624a41ff34bdddb
Message:
factory: LL via FLINT
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facAbsBiFact.cc

    rf3adf3 r4946e3  
    206206}
    207207
    208 #ifdef HAVE_NTL
     208#ifdef HAVE_NTL // henselLiftAndEarly
    209209//G is assumed to be bivariate, irreducible over Q, primitive wrt x and y, compressed
    210210CFAFList absBiFactorizeMain (const CanonicalForm& G, bool full)
     
    519519    }
    520520
     521    #ifdef HAVE_FLINT
     522    fmpz_mat_t FLINTM;
     523    convertFacCFMatrix2Fmpz_mat_t(FLINTM,*M);
     524    fmpq_t delta,eta;
     525    fmpq_init(delta); fmpq_set_si(delta,1,1);
     526    fmpq_init(eta); fmpq_set_si(eta,3,4);
     527    fmpz_mat_transpose(FLINTM,FLINTM);
     528    fmpz_mat_lll_storjohann(FLINTM,delta,eta);
     529    fmpz_mat_transpose(FLINTM,FLINTM);
     530    delete M;
     531    M=convertFmpz_mat_t2FacCFMatrix(FLINTM);
     532    fmpz_mat_clear(FLINTM);
     533    #elif defined(HAVE_NTL)
    521534    mat_ZZ * NTLM= convertFacCFMatrix2NTLmat_ZZ (*M);
    522535
     
    529542    M= convertNTLmat_ZZ2FacCFMatrix (*NTLM);
    530543    delete NTLM;
     544    #endif
    531545
    532546    mipo= 0;
Note: See TracChangeset for help on using the changeset viewer.