Changeset b44d16 in git


Ignore:
Timestamp:
Jan 19, 2004, 12:27:46 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
241b061058e7977a7c88da78f369a2fc3b76e55f
Parents:
f11d7badcdaf6188ba929aa6bf7fcc40bfccf113
Message:
*hannes: zzp routines


git-svn-id: file:///usr/local/Singular/svn/trunk@6991 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factor.cc

    rf11d7b rb44d16  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_factor.cc,v 1.21 2003-08-28 14:13:12 Singular Exp $ */
     2/* $Id: cf_factor.cc,v 1.22 2004-01-19 11:27:46 Singular Exp $ */
    33
    44//{{{ docu
     
    207207      {
    208208        // set remainder
     209        #ifdef NTL_ZZ
    209210        ZZ r;
    210211        r=getCharacteristic();
    211212        ZZ_pContext ccc(r);
     213        #else
     214        zz_pContext ccc(getCharacteristic());
     215        #endif
    212216        ccc.restore();
     217        #ifdef NTL_ZZ
    213218        ZZ_p::init(r);
     219        #else
     220        zz_p::init(getCharacteristic());
     221        #endif
    214222        // convert to NTL
     223        #ifdef NTL_ZZ
    215224        ZZ_pX f1=convertFacCF2NTLZZpX(f);
    216225        ZZ_p leadcoeff = LeadCoeff(f1);
     226        #else
     227        zz_pX f1=convertFacCF2NTLzzpX(f);
     228        zz_p leadcoeff = LeadCoeff(f1);
     229        #endif
    217230        //make monic
    218231        f1=f1 / LeadCoeff(f1);
    219232
    220233        // factorize
     234        #ifdef NTL_ZZ
    221235        vec_pair_ZZ_pX_long factors;
     236        #else
     237        vec_pair_zz_pX_long factors;
     238        #endif
    222239        CanZass(factors,f1);
    223240
    224241        // convert back to factory
     242        #ifdef NTL_ZZ
    225243        F=convertNTLvec_pair_ZZpX_long2FacCFFList(factors,leadcoeff,f.mvar());
     244        #else
     245        F=convertNTLvec_pair_zzpX_long2FacCFFList(factors,leadcoeff,f.mvar());
     246        #endif
    226247        //test_cff(F,f);
    227248      }
Note: See TracChangeset for help on using the changeset viewer.