Changeset aec5c9 in git for libpolys


Ignore:
Timestamp:
Apr 29, 2011, 2:51:47 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
bfa04ee2a025a85b141d50d577c0438ec69e4233
Parents:
760a78f4333abdcf36c17059f611fa15a34c2dac
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-04-29 14:51:47+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:31+01:00
Message:
minpoly replaced by minideal->m[0]; prep for longalg/longtrans
Location:
libpolys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r760a78f raec5c9  
    165165  ring          algring; //< implementation of extensions needs polynomials...
    166166  /// for Q_a/Zp_a, rInit
    167   number     minpoly;  //< make it a number! (needed for ring.cc) must be set by n???InitChar
     167  ///number     minpoly;  //< no longer needed: replaced by
     168                          //  algring->minideal->[0]
    168169
    169170
    170171//-------------------------------------------
    171   char* compex_parameter; //< the name of sqrt(-1), i.e. 'i' or 'j' etc...?
     172  char* complex_parameter; //< the name of sqrt(-1), i.e. 'i' or 'j' etc...?
    172173
    173174#ifdef HAVE_RINGS
    174175  /* The following members are for representing the ring Z/n,
    175      where n is not a prime. We distinguish three cases:
     176     where n is not a prime. We distinguish four cases:
    176177     1.) n has at least two distinct prime factors. Then
    177178         modBase stores n, modExponent stores 1, modNumber
  • libpolys/polys/monomials/ring.cc

    r760a78f raec5c9  
    15591559  {
    15601560    if ( rMinpolyIsNULL(r2) ) return FALSE;
    1561     if (! n_Equal(r1->cf->minpoly, r2->cf->minpoly, r1->cf)) return FALSE;
     1561    if (! n_Equal(r1->cf->algring->minideal->m[0],
     1562                  r2->cf->algring->minideal->m[0], r1->cf)) return FALSE;
    15621563  }
    15631564  else if (!rMinpolyIsNULL(r2)) return FALSE;
     
    16301631  if (r2->order[i] != 0) return FALSE;
    16311632
    1632   // we do not check minpoly
     1633  // we do not check minpoly/minideal
    16331634  // we do not check qideal
    16341635
     
    19851986
    19861987  if (!rMinpolyIsNULL(r))
    1987     omCheckAddr(r->cf->minpoly);
     1988    omCheckAddr(r->cf->algring->minideal->m[0]);
    19881989
    19891990  //assume(r->cf!=NULL);
     
    53945395    const ring R = C->algring;
    53955396    assume( R != NULL );
    5396     return idIs0(R->qideal);
     5397    return idIs0(R->minideal);
    53975398  }
    53985399  return TRUE;
  • libpolys/polys/monomials/ring.h

    r760a78f raec5c9  
    197197  int*       block1; /* ending pos., rInit/rSleftvOrdering2Ordering*/
    198198//  char**     parameter; /* names of parameters, rInit */
    199 //  number     minpoly;  /* for Q_a/Zp_a, rInit */
    200   ideal      minideal;
     199//  number     minpoly;  /* replaced by minideal->m[0] */
     200  ideal      minideal;   /* for Q_a/Zp_a, rInit;
     201                            for a start, we assume that there is either no
     202                            or exactly one generator in minideal, playing
     203                            the role of the former minpoly; minideal may
     204                            also be NULL which coincides with the
     205                            no-generator-case */
    201206  int**      wvhdl;  /* array of weight vectors, rInit/rSleftvOrdering2Ordering */
    202207  char **    names;  /* array of variable names, rInit */
Note: See TracChangeset for help on using the changeset viewer.