Changeset 244ed5 in git


Ignore:
Timestamp:
Nov 27, 2008, 6:18:05 PM (15 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4e803e313f457e20c95ef5350e02ebdfe4a1e3a0
Parents:
99d87535652761aa8ed969de6b6ab84ee03fea8a
Message:
updated header inclusions due to lplist


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

Legend:

Unmodified
Added
Removed
  • kernel/f5gb.cc

    r99d8753 r244ed5  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: f5gb.cc,v 1.12 2008-11-22 20:48:23 ederc Exp $ */
     4/* $Id: f5gb.cc,v 1.13 2008-11-27 17:17:32 ederc Exp $ */
    55/*
    66* ABSTRACT: f5gb interface
    77*/
    88#include "mod2.h"
    9 #include <list>
    109#ifdef HAVE_F5
    1110#include "kutil.h"
     
    2423#include "f5gb.h"
    2524#include "lpolynomial.h"
     25#include "lplist.h"
    2626
    2727
     
    6666* gb{f_m} -> gb{f_m,f_(m-1)} -> gb{f_m,...,f_1}
    6767 
    68 lpoly *f5_inc(lpoly* lp, lpoly* g_prev)
     68LPoly *f5_inc(LPoly* lp, LPoly* g_prev)
    6969{
    7070        long length = 1;
     
    9191*/
    9292// generating the list lp of ideal generators and test if 1 is in lp
    93 bool generate_input_list(lpoly* lp, ideal id, poly ONE)
     93bool generate_input_list(LPoly* lp, ideal id, poly ONE)
    9494{
    9595        long j;
     
    107107                lp[j].setDel(false);
    108108                lp[j].setNext(&lp[j+1]);
    109                 Print("Labeled Polynomial %d: ",j+1);
     109                Print("Labeled Polynomial %ld: ",j+1);
    110110                Print("Label Term: ");
    111111                pWrite(lp[j].getTerm());
    112                 Print("Index: %d\n", lp[j].getIndex());
     112                Print("Index: %ld\n", lp[j].getIndex());
    113113                Print("Delete? %d\n", lp[j].getDel());
    114114                pWrite(lp[j].getPoly());
     
    124124*/
    125125ideal F5main(ideal i, ring r) {
    126     lpoly* lp;
     126
    127127    long j;
    128 
     128    LPoly * lp = new LPoly;
    129129    // definition of one-polynomial as global constant ONE
    130130    poly one = pInit();
     
    153153    }
    154154    */
    155     Print("Es klappt!\nWIRKLICH!");
    156     return(i);
    157    
     155    Print("Es klappt!\nWIRKLICH!\n");
     156    // only for debugging
     157    lp->get();
     158    //return(i);
     159    LpList lp_list;
     160    while(NULL != lp->getNext()) {
     161        lp_list.insert(lp);
     162        lp = lp->getNext();
     163    }
     164    lp_list.get();
     165    return i;
    158166
    159167
  • kernel/f5gb.h

    r99d8753 r244ed5  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: f5gb.h,v 1.11 2008-11-22 20:48:23 ederc Exp $ */
     4/* $Id: f5gb.h,v 1.12 2008-11-27 17:18:05 ederc Exp $ */
    55/*
    66* ABSTRACT: f5gb interface
     
    1111#ifdef HAVE_F5
    1212#include "lpolynomial.h"
     13#include "lplist.h"
    1314
    1415
     
    1920// generating the list lp of ideal generators and
    2021// test if 1 is in lp(return 1) or not(return 0)
    21  bool generate_input_list(lpoly* lp, ideal id, poly one);
     22 bool generate_input_list(LPoly* lp, ideal id, poly one);
    2223
    2324/* computes incrementally gbs of subsets of the input
Note: See TracChangeset for help on using the changeset viewer.