Changeset b8490e7 in git
- Timestamp:
- Jan 20, 2002, 11:01:50 AM (22 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- 4b1d39db44978414343ed05c49e33ba58c20ffb4
- Parents:
- ce7a6ade0f7e5c23e21120e313e90d7bb0f00561
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/fast_maps.cc
rce7a6ad rb8490e7 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 02/01 9 * Version: $Id: fast_maps.cc,v 1.2 6 2002-01-19 20:55:17 obachmanExp $9 * Version: $Id: fast_maps.cc,v 1.27 2002-01-20 10:01:48 Singular Exp $ 10 10 *******************************************************************/ 11 11 #include "mod2.h" … … 275 275 void maMap_CreateRings(ideal map_id, ring map_r, 276 276 ideal image_id, ring image_r, 277 ring &src_r, ring &dest_r )277 ring &src_r, ring &dest_r, BOOLEAN &simple) 278 278 { 279 279 #if HAVE_SRC_R > 0 … … 296 296 else if (maxExp > (Exponent_t) image_r->bitmask) 297 297 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); 299 299 #else 300 300 dest_r = image_r; … … 349 349 ideal dest_id, res_id; 350 350 int length = 0; 351 BOOLEAN no_sort; 351 352 352 353 // construct rings we work in: 353 354 // src_r: Wp with Weights set to length of poly in image_id 354 355 // 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); 356 357 357 358 // construct dest_id … … 394 395 if (dest_r != image_r) 395 396 { 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); 397 401 id_ShallowDelete(&res_dest_id, dest_r); 398 402 } -
Singular/fast_maps.h
rce7a6ad rb8490e7 8 8 * bricken (Michael Brickenstein) 9 9 * Created: 01/02 10 * Version: $Id: fast_maps.h,v 1.1 5 2002-01-19 20:04:09 brickenExp $10 * Version: $Id: fast_maps.h,v 1.16 2002-01-20 10:01:48 Singular Exp $ 11 11 *******************************************************************/ 12 12 … … 95 95 void maMap_CreateRings(ideal map_id, ring map_r, 96 96 ideal image_id, ring image_r, 97 ring &src_r, ring &dest_r );97 ring &src_r, ring &dest_r, BOOLEAN &no_sort); 98 98 99 99 // collects tthe results into an ideal and destroys maideal -
Singular/ring.cc
rce7a6ad rb8490e7 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.17 8 2002-01-19 20:04:31 obachmanExp $ */4 /* $Id: ring.cc,v 1.179 2002-01-20 10:01:48 Singular Exp $ */ 5 5 6 6 /* … … 2657 2657 2658 2658 // construct lp ring 2659 ring rModifyRing_Simple(ring r, BOOLEAN ommit_degree, BOOLEAN ommit_comp, unsigned long exp_limit) 2660 { 2659 ring rModifyRing_Simple(ring r, BOOLEAN ommit_degree, BOOLEAN ommit_comp, unsigned long exp_limit, BOOLEAN &simple) 2660 { 2661 simple=TRUE; 2661 2662 if (!rHasSimpleOrder(r)) 2663 { 2662 2664 WarnS("Hannes: you still need to implement this"); 2665 // simple=FALSE; // sorting needed 2666 } 2663 2667 return rModifyRing(r, ommit_degree, ommit_comp, exp_limit); 2664 2668 } -
Singular/ring.h
rce7a6ad rb8490e7 7 7 * ABSTRACT - the interpreter related ring operations 8 8 */ 9 /* $Id: ring.h,v 1.7 0 2002-01-19 17:11:43 obachmanExp $ */9 /* $Id: ring.h,v 1.71 2002-01-20 10:01:50 Singular Exp $ */ 10 10 11 11 /* includes */ … … 268 268 void rKillModified_Wp_Ring(ring r); 269 269 270 ring rModifyRing_Simple(ring r, BOOLEAN omit_degree, BOOLEAN omit_comp, unsigned long exp_limit );270 ring rModifyRing_Simple(ring r, BOOLEAN omit_degree, BOOLEAN omit_comp, unsigned long exp_limit, BOOLEAN &simple); 271 271 void rKillModifiedRing_Simple(ring r); 272 272
Note: See TracChangeset
for help on using the changeset viewer.