Changeset a9a7be in git for Singular/mpsr_PutPoly.cc


Ignore:
Timestamp:
Sep 27, 1999, 5:05:35 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7c19609b3106a80912e66f6ac4fa0fa446532b1f
Parents:
7d423ecfe560c226d3e99aed883841c463e884ec
Message:
* walk stuff


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

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_PutPoly.cc

    r7d423e ra9a7be  
    33****************************************/
    44
    5 /* $Id: mpsr_PutPoly.cc,v 1.15 1999-03-12 12:05:24 Singular Exp $ */
     5/* $Id: mpsr_PutPoly.cc,v 1.16 1999-09-27 15:05:28 obachman Exp $ */
    66
    77/***************************************************************
     
    1313 * Change History (most recent first):
    1414 *  o 1/97 obachman
    15  *    Updated routines to MP and MPP v1.1 
     15 *    Updated routines to MP and MPP v1.1
    1616 *
    1717 ***************************************************************/
     
    2626#include "ring.h"
    2727#include "polys.h"
    28 #include "ipid.h"
     28//#include "ipid.h"
    2929
    3030#ifdef PARI_BIGINT_TEST
     
    144144  if (a == NULL)
    145145    mp_return( MP_PutSint32Packet(link, 0, 0));
    146  
     146
    147147  // check for SR_INT type
    148148  if (SR_HDL(a) & SR_INT)
     
    160160//     return PutRationalNumber(link, a);
    161161//   }
    162  
     162
    163163  // send number itself
    164164  mp_failr(MP_PutCommonOperatorPacket(link,
     
    259259    pTest(p);
    260260#endif
    261  
     261
    262262  if (gNvars > 1)
    263263  {
    264264    short i;
    265265    MP_Sint32_t *ta1 = &(gTa[1]);
    266    
     266
    267267    while (p != NULL)
    268268    {
     
    290290  if (cring != CurrPutRing)
    291291    SetPutFuncs(cring);
    292  
     292
    293293  if (gNvars > 1)
    294294  {
     
    348348  if (r->minpoly != NULL && r->parameter == NULL && r->ch > 0)
    349349    failr(PutMinPolyAnnot(link,r));
    350  
     350
    351351  if (r->qideal != NULL)
    352352    return PutDefRelsAnnot(link, r);
     
    358358                                       BOOLEAN mv)
    359359{
    360   // each element of the poly is a 
     360  // each element of the poly is a
    361361  mp_failr(MP_PutAnnotationPacket(link,
    362362                                  MP_ProtoDict,
     
    392392                                    MP_CmtProtoIMP_Uint32,
    393393                                    1));
    394     // but are taken as modulo numbers 
     394    // but are taken as modulo numbers
    395395    mp_failr(MP_PutAnnotationPacket(link,
    396396                                    MP_NumberDict,
     
    418418  else if (rField_is_R(r))
    419419  {
    420     // floats 
     420    // floats
    421421    mp_failr(MP_PutCommonMetaTypePacket(link,
    422422                                    MP_ProtoDict,
     
    439439    alg_r->minpoly = r->minpoly;
    440440
    441     // Algebraic numbers are 
     441    // Algebraic numbers are
    442442    // a fraction of two Dense Dist Polys
    443443    mp_failr(MP_PutCommonMetaOperatorPacket(link,
     
    478478}
    479479
    480    
     480
    481481static mpsr_Status_t PutVarNamesAnnot(MP_Link_pt link, ring r)
    482482{
     
    507507                                    MP_AnnotProtoPrototype,
    508508                                    MP_AnnotReqValNode));
    509                                  
     509
    510510    mp_failr(MP_PutCommonMetaTypePacket(link,
    511511                                    MP_ProtoDict,
     
    528528}
    529529
    530  
     530
    531531static mpsr_Status_t PutOrderingAnnot(MP_Link_pt link, ring r, BOOLEAN mv)
    532532{
     
    566566                       order[index] == ringorder_c)))
    567567    {
    568       // a product ordering is sent as triple 
     568      // a product ordering is sent as triple
    569569      mp_failr(MP_PutCommonOperatorPacket(link,
    570570                                          MP_BasicDict,
     
    598598  if (vlength == 0) return mpsr_Success;
    599599
    600   // deal with the weights 
     600  // deal with the weights
    601601  mp_failr(MP_PutAnnotationPacket(link,
    602602                                  MP_PolyDict,
     
    649649  }
    650650
    651   // weights are all what remains 
     651  // weights are all what remains
    652652  for (i=0; i<vlength; i++)
    653653    mp_failr(IMP_PutSint32(link, (MP_Sint32_t) r->wvhdl[index][i]));
     
    659659{
    660660  mpsr_assume(r->minpoly != NULL && r->ch > 0 && r->parameter == NULL);
    661  
     661
    662662  number minpoly = r->minpoly;
    663663  r->minpoly = 0;
     
    688688    PutAlgAlgNumber = PutRationalNumber;
    689689  gNalgvars = r->N;
    690  
     690
    691691  r->minpoly = minpoly;
    692692  return PutAlgPoly(link, ((lnumber) minpoly)->z);
    693693}
    694694
    695  
     695
    696696static mpsr_Status_t PutDefRelsAnnot(MP_Link_pt link, ring r)
    697697{
Note: See TracChangeset for help on using the changeset viewer.