Changeset b8490e7 in git


Ignore:
Timestamp:
Jan 20, 2002, 11:01:50 AM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
4b1d39db44978414343ed05c49e33ba58c20ffb4
Parents:
ce7a6ade0f7e5c23e21120e313e90d7bb0f00561
Message:
*hannes: handle simple orderings -> no sorting


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

Legend:

Unmodified
Added
Removed
  • Singular/fast_maps.cc

    rce7a6ad rb8490e7  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 02/01
    9  *  Version: $Id: fast_maps.cc,v 1.26 2002-01-19 20:55:17 obachman Exp $
     9 *  Version: $Id: fast_maps.cc,v 1.27 2002-01-20 10:01:48 Singular Exp $
    1010 *******************************************************************/
    1111#include "mod2.h"
     
    275275void maMap_CreateRings(ideal map_id, ring map_r,
    276276                       ideal image_id, ring image_r,
    277                        ring &src_r, ring &dest_r)
     277                       ring &src_r, ring &dest_r, BOOLEAN &simple)
    278278{
    279279#if HAVE_SRC_R > 0
     
    296296  else if (maxExp > (Exponent_t) image_r->bitmask)
    297297    maxExp = (Exponent_t) image_r->bitmask;
    298   dest_r = rModifyRing_Simple(image_r, TRUE, TRUE, maxExp);
     298  dest_r = rModifyRing_Simple(image_r, TRUE, TRUE, maxExp,  simple);
    299299#else
    300300  dest_r = image_r;
     
    349349  ideal dest_id, res_id;
    350350  int length = 0;
     351  BOOLEAN no_sort;
    351352
    352353  // construct rings we work in:
    353354  // src_r: Wp with Weights set to length of poly in image_id
    354355  // dest_r: Simple ring without degree ordering and short exponents
    355   maMap_CreateRings(map_id, map_r, image_id, image_r, src_r, dest_r);
     356  maMap_CreateRings(map_id, map_r, image_id, image_r, src_r, dest_r, no_sort);
    356357 
    357358  // construct dest_id
     
    394395  if (dest_r != image_r)
    395396  {
    396     res_image_id = idrShallowCopyR(res_dest_id, dest_r, image_r);
     397    if (no_sort)
     398      res_image_id = idrShallowCopyR_NoSort(res_dest_id, dest_r, image_r);
     399    else 
     400      res_image_id = idrShallowCopyR(res_dest_id, dest_r, image_r);
    397401    id_ShallowDelete(&res_dest_id, dest_r);
    398402  }
  • Singular/fast_maps.h

    rce7a6ad rb8490e7  
    88 *           bricken (Michael Brickenstein)
    99 *  Created: 01/02
    10  *  Version: $Id: fast_maps.h,v 1.15 2002-01-19 20:04:09 bricken Exp $
     10 *  Version: $Id: fast_maps.h,v 1.16 2002-01-20 10:01:48 Singular Exp $
    1111 *******************************************************************/
    1212
     
    9595void maMap_CreateRings(ideal map_id, ring map_r,
    9696                       ideal image_id, ring image_r,
    97                        ring &src_r, ring &dest_r);
     97                       ring &src_r, ring &dest_r, BOOLEAN &no_sort);
    9898
    9999// collects tthe results into an ideal and destroys maideal
  • Singular/ring.cc

    rce7a6ad rb8490e7  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.178 2002-01-19 20:04:31 obachman Exp $ */
     4/* $Id: ring.cc,v 1.179 2002-01-20 10:01:48 Singular Exp $ */
    55
    66/*
     
    26572657
    26582658// construct lp ring
    2659 ring rModifyRing_Simple(ring r, BOOLEAN ommit_degree, BOOLEAN ommit_comp, unsigned long exp_limit)
    2660 {
     2659ring rModifyRing_Simple(ring r, BOOLEAN ommit_degree, BOOLEAN ommit_comp, unsigned long exp_limit, BOOLEAN &simple)
     2660{
     2661  simple=TRUE;
    26612662  if (!rHasSimpleOrder(r))
     2663  {
    26622664    WarnS("Hannes: you still need to implement this");
     2665    // simple=FALSE; // sorting needed
     2666  } 
    26632667  return rModifyRing(r, ommit_degree, ommit_comp, exp_limit);
    26642668}
  • Singular/ring.h

    rce7a6ad rb8490e7  
    77* ABSTRACT - the interpreter related ring operations
    88*/
    9 /* $Id: ring.h,v 1.70 2002-01-19 17:11:43 obachman Exp $ */
     9/* $Id: ring.h,v 1.71 2002-01-20 10:01:50 Singular Exp $ */
    1010
    1111/* includes */
     
    268268void rKillModified_Wp_Ring(ring r);
    269269
    270 ring rModifyRing_Simple(ring r, BOOLEAN omit_degree, BOOLEAN omit_comp, unsigned long exp_limit);
     270ring rModifyRing_Simple(ring r, BOOLEAN omit_degree, BOOLEAN omit_comp, unsigned long exp_limit, BOOLEAN &simple);
    271271void rKillModifiedRing_Simple(ring r);
    272272
Note: See TracChangeset for help on using the changeset viewer.