Changeset 6f08f3 in git


Ignore:
Timestamp:
Jun 30, 2011, 11:48:46 AM (13 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
5df7d029068a38046a1329dc167295ebd9546adb
Parents:
3a8c5fe234a64598138a3f2f2cd5c5c2636d4442
Message:
create Variable(1) just once


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

Legend:

Unmodified
Added
Removed
  • factory/algext.cc

    r3a8c5fe r6f08f3  
    511511  CanonicalForm g_image, alpha, gnew, mnew;
    512512  FFGenerator gen = FFGenerator();
     513  Variable x= Variable (1);
    513514  for(FFGenerator gen = FFGenerator(); gen.hasItems(); gen.next())
    514515  {
    515516    alpha = gen.item();
    516     gamma_image = reduce(gamma(alpha, Variable(1)),M); // plug in alpha for var(1)
     517    gamma_image = reduce(gamma(alpha, x),M); // plug in alpha for var(1)
    517518    if(gamma_image.isZero()) // skip lc-bad points var(1)-alpha
    518519      continue;
    519     tryBrownGCD( f(alpha, Variable(1)), g(alpha, Variable(1)), M, g_image, fail, false ); // recursive call with one var less
     520    tryBrownGCD( f(alpha, x), g(alpha, x), M, g_image, fail, false ); // recursive call with one var less
    520521    if(fail)
    521522      return;
     
    536537      g_image /= lc(g_image); // make g_image monic over Z/p
    537538      g_image *= gamma_image; // multiply by multiple of image lc(gcd)
    538       tryCRA( g_image, Variable(1)-alpha, gm, m, M, gnew, mnew, fail );
     539      tryCRA( g_image, x-alpha, gm, m, M, gnew, mnew, fail );
    539540      // gnew = gm mod m
    540541      // gnew = g_image mod var(1)-alpha
Note: See TracChangeset for help on using the changeset viewer.