Changeset 9f1083 in git


Ignore:
Timestamp:
Jan 13, 2006, 11:56:40 AM (18 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4cbb61ba5014a593b9bc6569b497e9a8151bc15f
Parents:
9ce72aecbd5700bb291ae22e4875d6cd55c525ae
Message:
*bricken: hope it works with, extract content from monomial


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

Legend:

Unmodified
Added
Removed
  • kernel/kbuckets.cc

    r9ce72a r9f1083  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kbuckets.cc,v 1.15 2006-01-12 14:12:41 bricken Exp $ */
     4/* $Id: kbuckets.cc,v 1.16 2006-01-13 10:56:40 bricken Exp $ */
    55
    66#include "mod2.h"
     
    253253       assume(pNext(lm)==NULL);
    254254       number coef=p_GetCoeff(lm,bucket->bucket_ring);
     255       //WARNING: not thread_safe
    255256       p_SetCoeff0(lm, n_Init(1,bucket->bucket_ring), bucket->bucket_ring);
    256257       bucket->buckets[i]=lm;
     
    10001001  l1--;
    10011002
     1003  assume(l1==pLength(a1));
     1004  BOOLEAN backuped=FALSE;
     1005  number coef;
     1006  if(l1==1) {
     1007   
     1008    //if (rField_is_Q(bucket->bucket_ring)) {
     1009      //avoid this for function fields, as gcds are expensive at the moment
     1010     
     1011     
     1012      coef=p_GetCoeff(a1,bucket->bucket_ring);
     1013      lm=p_Mult_nn(lm, coef, bucket->bucket_ring);
     1014      p_SetCoeff0(a1, n_Init(1,bucket->bucket_ring), bucket->bucket_ring);
     1015      backuped=TRUE;
     1016      //WARNING: not thread_safe
     1017    //deletes coef as side effect
     1018    //}
     1019  }
     1020
     1021 
    10021022  kBucket_Minus_m_Mult_p(bucket, lm, a1, &l1, spNoether);
    1003 
     1023 
     1024  if (backuped)
     1025    p_SetCoeff0(a1,coef,bucket->bucket_ring);
    10041026  p_DeleteLm(&lm, bucket->bucket_ring);
    10051027  if (reset_vec) p_SetCompP(a1, 0, bucket->bucket_ring);
     
    10851107    }
    10861108  }
     1109  n_Delete(&coef,r);
    10871110}
    10881111
Note: See TracChangeset for help on using the changeset viewer.