Changeset 5c990f1 in git for kernel/ring.cc


Ignore:
Timestamp:
Apr 3, 2009, 10:02:20 PM (14 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
9660f5c48cc33240ba1f644718ebd3f554c48fff
Parents:
5ff25a34cd1c8aae9be47c0a88b1fc0d92845df1
Message:
*motsak: fixing rOpposite (quotients)


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

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r5ff25a3 r5c990f1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.115 2009-03-30 09:03:08 Singular Exp $ */
     4/* $Id: ring.cc,v 1.116 2009-04-03 20:02:20 motsak Exp $ */
    55
    66/*
     
    43904390{
    43914391  if (src == NULL) return(NULL);
     4392
     4393#ifdef RDEBUG
     4394  rTest(src);
     4395#endif
     4396
    43924397  ring save = currRing;
    43934398  rChangeCurrRing(src);
    43944399
    4395   ring r = rCopy0(src,TRUE); /* TRUE for copy the qideal */
     4400#ifdef RDEBUG
     4401  rTest(src);
     4402//  rWrite(src);
     4403//  rDebugPrint(src);
     4404#endif
     4405
     4406 
     4407//  ring r = rCopy0(src,TRUE); /* TRUE for copy the qideal: Why??? */
     4408  ring r = rCopy0(src,FALSE); /* qideal will be deleted later on!!! */
     4409 
    43964410  /*  rChangeCurrRing(r); */
    43974411  // change vars v1..vN -> vN..v1
     
    46054619
    46064620#ifdef RDEBUG
    4607   //   rDebugPrint(r);
    46084621  rTest(r);
    46094622#endif
     
    46114624  rChangeCurrRing(r);
    46124625
     4626#ifdef RDEBUG
     4627  rTest(r);
     4628//  rWrite(r);
     4629//  rDebugPrint(r);
     4630#endif
     4631
     4632 
    46134633#ifdef HAVE_PLURAL
    46144634  // now, we initialize a non-comm structure on r
     
    46474667    idTest((ideal)D);
    46484668
    4649     if (nc_CallPlural(C, D, NULL, NULL, r, false, false, true, r))
     4669    if (nc_CallPlural(C, D, NULL, NULL, r, false, false, true, r)) // no qring setup!
    46504670      WarnS("Error initializing non-commutative multiplication!");
    46514671
     4672   
     4673#ifdef RDEBUG
     4674    rTest(r);
     4675//    rWrite(r);
     4676//    rDebugPrint(r);
     4677#endif
     4678
    46524679    assume( r->GetNC()->IsSkewConstant == src->GetNC()->IsSkewConstant);
    4653     assume( ncRingType(r) == ncRingType(src) );
    46544680
    46554681    omFreeSize((ADDRESS)perm,(rVar(r)+1)*sizeof(int));
    4656 
    4657     rChangeCurrRing(save);
    46584682
    46594683  }
     
    46654689  {
    46664690    idDelete(&(r->qideal));
     4691
    46674692#ifdef HAVE_PLURAL
    4668     r->qideal = idOppose(src, src->qideal);
     4693    r->qideal = idOppose(src, src->qideal); // into the currRing: r
    46694694#else
    4670     r->qideal = idCopy( src->qideal);
     4695    r->qideal = id_Copy(src->qideal, currRing); // ?
    46714696#endif
    46724697
     
    46744699#ifdef HAVE_PLURAL
    46754700    if( rIsPluralRing(r) )
     4701    {
    46764702      nc_SetupQuotient(r);
    4677 #endif
    4678   }
    4679 
     4703
     4704#ifdef RDEBUG
     4705      rTest(r);
     4706//      rWrite(r);
     4707//      rDebugPrint(r);
     4708#endif
     4709    }
     4710
     4711#endif
     4712  }
     4713
     4714
     4715#ifdef HAVE_PLURAL
     4716  if( rIsPluralRing(r) )
     4717    assume( ncRingType(r) == ncRingType(src) );
     4718#endif
     4719
     4720 
    46804721  rTest(r);
    46814722
Note: See TracChangeset for help on using the changeset viewer.