Changeset 5d68a6 in git


Ignore:
Timestamp:
Dec 17, 2008, 4:08:50 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
06babc58e0b2f4d1aa9531df0295f716578651d1
Parents:
aa5055c85d54ecfba96a8906de445fdb57edb98d
Message:
*hannes: factory conversion:GF


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

Legend:

Unmodified
Added
Removed
  • kernel/clapconv.cc

    raa5055 r5d68a6  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapconv.cc,v 1.11 2008-04-08 16:59:53 Singular Exp $
     5// $Id: clapconv.cc,v 1.12 2008-12-17 15:07:46 Singular Exp $
    66/*
    77* ABSTRACT: convert data between Singular and factory
     
    2222#include "ring.h"
    2323#include "sbuckets.h"
     24#include "ffields.h"
     25void out_cf(char *s1,const CanonicalForm &f,char *s2);
    2426
    2527static void convRec( const CanonicalForm & f, int * exp, poly & result );
     
    625627}
    626628
    627 #if 0
    628629CanonicalForm
    629630convSingGFFactoryGF( poly p )
    630631{
    631   CanonicalForm result = 0;
     632  CanonicalForm result=CanonicalForm(0);
    632633  int e, n = pVariables;
    633634
     
    635636  {
    636637    CanonicalForm term;
    637     term = make_cf_from_gf( pGetCoeff( p ) );
     638    term = make_cf_from_gf( (int)(long)pGetCoeff( p ) );
     639    //int * A=(int *)&term;
     640    //Print("term=%x, == 0 ?: %d\n",*A, term.isZero());
    638641    for ( int i = 1; i <= n; i++ )
    639642    {
     
    687690  }
    688691}
    689 #endif
    690692
    691693int convFactoryISingI( const CanonicalForm & f)
  • kernel/clapsing.cc

    raa5055 r5d68a6  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.31 2008-09-12 14:16:01 Singular Exp $
     5// $Id: clapsing.cc,v 1.32 2008-12-17 15:08:50 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    1717#include "numbers.h"
    1818#include "ring.h"
     19#include "ffields.h"
    1920#include <factory.h>
    2021#include "clapconv.h"
     
    554555    }
    555556  }
     557  #if 0 // not yet working
     558  else if (rField_is_GF())
     559  {
     560    //Print("GF(%d^%d)\n",nfCharP,nfMinPoly[0]);
     561    setCharacteristic( nfCharP,nfMinPoly[0], currRing->parameter[0][0] );
     562    CanonicalForm F( convSingGFFactoryGF( f ) ), G( convSingGFFactoryGF( g ) );
     563    res = convFactoryGFSingGF( F / G );
     564  }
     565  #endif
    556566  else
    557567    WerrorS( feNotImplemented );
  • kernel/ffields.cc

    raa5055 r5d68a6  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ffields.cc,v 1.9 2008-03-19 17:44:08 Singular Exp $ */
     4/* $Id: ffields.cc,v 1.10 2008-12-17 15:07:46 Singular Exp $ */
    55/*
    66* ABSTRACT: finite fields with a none-prime number of elements (via tables)
     
    1818int nfCharQ=0;  /* the number of elemts: q*/
    1919int nfM1;       /*representation of -1*/
    20 static int nfCharP=0;  /* the characteristic: p*/
     20int nfCharP=0;  /* the characteristic: p*/
    2121static int nfCharQ1=0; /* q-1 */
    2222CARDINAL *nfPlus1Table=NULL; /* the table i=log(z^i) -> log(z^i+1) */
  • kernel/ffields.h

    raa5055 r5d68a6  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ffields.h,v 1.2 2008-03-19 17:44:08 Singular Exp $ */
     6/* $Id: ffields.h,v 1.3 2008-12-17 15:07:46 Singular Exp $ */
    77/*
    88* ABSTRACT: finite fields with a none-prime number of elements (via tables)
     
    3838char *  nfName        (number n);
    3939extern  int nfMinPoly[];
     40extern  int nfCharP;  /* the characteristic: p*/
     41extern  int nfCharQ;  /* p^n = number of el. = repr. of 0 */
    4042void    nfShowMipo();
    4143#endif
Note: See TracChangeset for help on using the changeset viewer.