Changeset 8838ab in git


Ignore:
Timestamp:
Jun 15, 1999, 10:34:18 AM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
df4422b2fdaedca7c8e3cbd827167ed22d5024c7
Parents:
3c8e50bcc6eb720109f4b83d71567c36d48d8ae1
Message:
*hannes: GF-conversion


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

Legend:

Unmodified
Added
Removed
  • Singular/clapconv.h

    r3c8e50 r8838ab  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapconv.h,v 1.6 1998-12-16 18:43:35 Singular Exp $
     5// $Id: clapconv.h,v 1.7 1999-06-15 08:33:13 Singular Exp $
    66/*
    77* ABSTRACT: convert data between Singular and factory
     
    2525poly convClapAPSingAP ( const CanonicalForm & f );
    2626
    27 CanonicalForm convSingGFClapGF ( poly p , const Variable & a );
     27CanonicalForm convSingGFClapGF ( poly p );
    2828poly convClapGFSingGF ( const CanonicalForm & f );
    2929
  • Singular/clapsing.cc

    r3c8e50 r8838ab  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.51 1999-06-14 16:25:42 Singular Exp $
     5// $Id: clapsing.cc,v 1.52 1999-06-15 08:32:31 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    683683    }
    684684  }
     685  #if 0
    685686  else if (rField_is_GF())
    686687  {
     
    697698    }
    698699  }
     700  #endif
    699701  // and over Q(a) / Fp(a)
    700702  else if (rField_is_Extension())
     
    775777      if (rField_is_Zp() || rField_is_Q())           /* Q, Fp */
    776778        res->m[j] = convClapPSingP( J.getItem().factor() );
     779      #if 0
    777780      else if (rField_is_GF())
    778781        res->m[j] = convClapGFSingGF( J.getItem().factor() );
     782      #endif
    779783      else if (rField_is_Extension())     /* Q(a), Fp(a) */
    780784      {
  • Singular/extra.cc

    r3c8e50 r8838ab  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.92 1999-06-09 11:53:42 mschulze Exp $ */
     4/* $Id: extra.cc,v 1.93 1999-06-15 08:29:23 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    10001000    else
    10011001#endif
     1002/*==================== GF =================*/
     1003#if 0
     1004    if (strcmp(sys_cmd, "GF") == 0)
     1005    {
     1006      int c=rChar(currRing);
     1007      setCharacteristic( c, 2);
     1008      CanonicalForm F( convSingGFClapGF( (poly)h->Data() ) );
     1009      res->rtyp=POLY_CMD;
     1010      res->data=convClapGFSingGF( F );
     1011      return FALSE;
     1012    }
     1013    else
     1014#endif
    10021015/*============================================================*/
    10031016      Werror( "system(\"%s\",...) %s", sys_cmd, feNotImplemented );
  • factory/singext.cc

    r3c8e50 r8838ab  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: singext.cc,v 1.2 1997-06-19 12:21:59 schmidt Exp $ */
     2/* $Id: singext.cc,v 1.3 1999-06-15 08:34:18 Singular Exp $ */
    33
    44#include <config.h>
     
    5454}
    5555
     56int gf_value (const CanonicalForm & f )
     57{
     58    InternalCF * ff = f.getval();
     59    return ((int)ff) >>2;
     60}
     61
    5662CanonicalForm
    5763make_cf ( const MP_INT & n )
     
    6571    return CanonicalForm( CFFactory::rational( n, d, normalize ) );
    6672}
     73
     74CanonicalForm make_cf_from_gf ( const int z )
     75{
     76    return CanonicalForm(int2imm_gf(z));
     77}
  • factory/singext.h

    r3c8e50 r8838ab  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: singext.h,v 1.5 1998-06-08 15:40:54 schmidt Exp $ */
     2/* $Id: singext.h,v 1.6 1999-06-15 08:34:02 Singular Exp $ */
    33
    44#ifndef INCL_SINGEXT_H
     
    2626MP_INT gmp_denominator ( const CanonicalForm & f );
    2727
     28int gf_value (const CanonicalForm & f );
     29
    2830CanonicalForm make_cf ( const MP_INT & n );
    2931
    3032CanonicalForm make_cf ( const MP_INT & n, const MP_INT & d, bool normalize );
    3133
     34CanonicalForm make_cf_from_gf ( const int z );
     35
    3236/*ENDPUBLIC*/
    3337
Note: See TracChangeset for help on using the changeset viewer.