Changeset a8bb72d in git


Ignore:
Timestamp:
Jun 8, 2005, 3:52:12 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
cd6ff4925c1335a6a1617eccfabad9197484c383
Parents:
261735d407471bf3413150f3179011e8eca56bd3
Message:
*Hannes: minideal


git-svn-id: file:///usr/local/Singular/svn/trunk@8349 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/longalg.cc

    r261735d ra8bb72d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.9 2005-04-27 14:55:33 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.10 2005-06-08 13:52:12 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    6565static ring nacRing;
    6666
     67#define napCopy(p)       (napoly)p_Copy((poly)p,nacRing)
     68
    6769static number nadGcd( number a, number b, const ring r) { return nacInit(1); }
    6870/*2
     
    8688  else
    8789    naMinimalPoly = NULL;
     90  if (r->minideal!=NULL)
     91  {
     92    naI=(naIdeal)omAllocBin(snaIdeal_bin);
     93    naI->anz=IDELEMS(r->minideal);
     94    naI->liste=(napoly*)omAlloc(naI->anz*sizeof(napoly));
     95    int j;
     96    for (j=naI->anz-1; j>=0; j--)
     97    {
     98      lnumber a = (lnumber)pGetCoeff(r->minideal->m[j]);
     99      naI->liste[j]=napCopy(a->z);
     100    }
     101  }
    88102
    89103  naNumbOfPar=rPar(r);
     
    147161#define napSetCoeff(p,n) {nacDelete(&napGetCoeff(p),nacRing);napGetCoeff(p)=n;}
    148162#define napDelete1(p)    p_LmDelete((poly *)p, nacRing)
    149 #define napCopy(p)       (napoly)p_Copy((poly)p,nacRing)
    150163#define nap_Copy(p,r)       (napoly)p_Copy((poly)p,r->algring)
    151164#define napComp(p,q)     p_LmCmp((poly)p,(poly)q, nacRing)
  • kernel/ring.cc

    r261735d ra8bb72d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.39 2005-06-06 16:04:19 Singular Exp $ */
     4/* $Id: ring.cc,v 1.40 2005-06-08 13:52:12 Singular Exp $ */
    55
    66/*
     
    276276      {
    277277        PrintS("...\n");
     278      }
     279      if (r->minideal!=NULL)
     280      {
     281        if (r==currRing) iiWriteMatrix((matrix)r->minideal,"//   minpolys",1,0);
     282        else PrintS("//   minpolys=...");
     283        PrintLn();
    278284      }
    279285    }
Note: See TracChangeset for help on using the changeset viewer.