Changeset 7012d0 in git


Ignore:
Timestamp:
Feb 25, 2009, 11:41:54 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8bdaab44e15deb0fcc5340fad52e47e770503689
Parents:
26d633bea196d3f0e73fe91e0d3b3753397016ac
Message:
*hannes: minor(A,b,R): kNF also at the beginning


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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r26d633 r7012d0  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.69 2009-02-12 16:19:23 motsak Exp $ */
     4/* $Id: ideals.cc,v 1.70 2009-02-25 10:41:54 Singular Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    27482748      b->m[i] = prCopyR(a->m[i],origR);
    27492749  }
    2750   if (R) R = idrCopyR(R,origR);
     2750  if (R!=NULL)
     2751  {
     2752    R = idrCopyR(R,origR);
     2753    if (ar>1) // otherwise done in mpMinorToResult
     2754    {
     2755      matrix bb=(matrix)kNF(R,currQuotient,(ideal)b);
     2756      bb->rank=b->rank; bb->nrows=b->nrows; bb->ncols=b->ncols;
     2757      idDelete((ideal*)&b); b=bb;
     2758    }
     2759  }
    27512760  result=idInit(32,1);
    27522761  if(ar>1) mpRecMin(ar-1,result,elems,b,r,c,NULL,R);
    27532762  else mpMinorToResult(result,elems,b,r,c,R);
    27542763  idDelete((ideal *)&b);
    2755   if (R) idDelete(&R);
     2764  if (R!=NULL) idDelete(&R);
    27562765  idSkipZeroes(result);
    27572766  rChangeCurrRing(origR);
Note: See TracChangeset for help on using the changeset viewer.