Changeset c56a23 in git


Ignore:
Timestamp:
Mar 12, 1999, 1:05:24 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0a8363710624cb96eb31b5c8f73c2a20d42f0c18
Parents:
0d75846d805790817debe506ec114af12ae711b4
Message:
*hannes: fixes to mpsr_PutPoly/ new field tests


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

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_PutPoly.cc

    r0d7584 rc56a23  
    33****************************************/
    44
    5 /* $Id: mpsr_PutPoly.cc,v 1.14 1999-03-08 17:30:48 Singular Exp $ */
     5/* $Id: mpsr_PutPoly.cc,v 1.15 1999-03-12 12:05:24 Singular Exp $ */
    66
    77/***************************************************************
     
    2424#include "longalg.h"
    2525#include "mmemory.h"
     26#include "ring.h"
    2627#include "polys.h"
    2728#include "ipid.h"
     
    9394    // rational numbers
    9495    PutCoeff= PutRationalNumber;
    95   else if (rField_is_Zp(r))
     96  else if (rField_is_Zp(r) || rField_is_GF(r))
    9697    // Form our point of view, ModuloP numbers and numbers from
    9798    // GF(p,n) are the same, here. They only differ in the annots
     
    345346  // Hmm .. this is not according to a "proper" Singular ring,
    346347  // but to be used in a recursive call of mpsr_PutRingAnnots
    347   if (r->minpoly != NULL && r->parameter == NULL
    348   && (rField_is_Q_a(r)||rField_is_GF(r)))
     348  if (r->minpoly != NULL && r->parameter == NULL && r->ch > 0)
    349349    failr(PutMinPolyAnnot(link,r));
    350350 
     
    384384                                    0));
    385385  }
    386   else if (rField_is_Zp(r))
     386  else if (rField_is_Zp(r) || rField_is_GF(r))
    387387  {
    388388    // modulo p numbers
     
    398398                                    MP_AnnotValuated));
    399399    // with Modulo
    400     mp_failr(MP_PutUint32Packet(link, rChar(r), 1));
     400    mp_failr(MP_PutUint32Packet(link, rInternalChar(r), 1));
    401401    if (r->parameter == NULL)
    402402    {
     
    683683  // need to set PutAlgAlgnumber and gNalgVars
    684684  CurrPutRing = r;
    685   if (rField_is_Zp(r)) // orig: (r->ch > 0) ???
     685  if (rField_is_Zp(r) || rField_is_GF(r))
    686686    PutAlgAlgNumber = PutModuloNumber;
    687687  else
Note: See TracChangeset for help on using the changeset viewer.