Changeset 8ba479 in git


Ignore:
Timestamp:
Feb 13, 2007, 3:58:52 PM (17 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
1aeec42f9fc95c9105c6cebdeb8c2bbc99bcbfea
Parents:
b749b94b74af2dec09d933009b2923e7b78f89ef
Message:
*bricken: some cleaning


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

Legend:

Unmodified
Added
Removed
  • kernel/tgb.cc

    rb749b9 r8ba479  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb.cc,v 1.129 2007-02-13 14:19:48 bricken Exp $ */
     7/* $Id: tgb.cc,v 1.130 2007-02-13 14:58:52 bricken Exp $ */
    88/*
    99* ABSTRACT: slimgb and F4 implementation
     
    20852085    PrintS("StopGauss\n");
    20862086}
     2087static void write_poly_to_row(number* row, poly h, poly*terms, int tn){
     2088  //poly* base=row;
     2089  while(h!=NULL){
     2090    //Print("h:%i\n",h);
     2091    number coef=p_GetCoeff(h,c->r);
     2092    poly* ptr_to_h=(poly*) bsearch(&h,terms,tn,sizeof(poly),terms_sort_crit);
     2093    assume(ptr_to_h!=NULL);
     2094    int pos=ptr_to_h-terms;
     2095    row[pos]=coef;
     2096    //number_array[base+pos]=coef;
     2097    pIter(h);
     2098  }
     2099}
    20872100static void linalg_step_modp(poly *p, poly* p_out, int&pn, poly* terms,int tn, slimgb_alg* c){
    20882101  static int export_n=0;
     
    20992112  for(i=0;i<pn;i++){
    21002113    poly h=p[i];
    2101     int base=tn*i;
    2102     while(h!=NULL){
    2103       //Print("h:%i\n",h);
    2104       number coef=p_GetCoeff(h,c->r);
    2105       poly* ptr_to_h=(poly*) bsearch(&h,terms,tn,sizeof(poly),terms_sort_crit);
    2106       assume(ptr_to_h!=NULL);
    2107       int pos=ptr_to_h-terms;
    2108       number_array[base+pos]=coef;
    2109       pIter(h);
    2110     }
    2111     p_Delete(&h,c->r);
     2114    //int base=tn*i;
     2115    write_poly_to_row(number_array+tn*i,h,terms,tn);
     2116
    21122117  }
    21132118#if 0
Note: See TracChangeset for help on using the changeset viewer.