Changeset f498f10 in git
- Timestamp:
- Nov 27, 2005, 2:56:03 PM (18 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 585bbcba0c423f3cce154cc90b7ff47e29b27bfd
- Parents:
- e604cdf98381c71eec0218b9f81a5d4655edecf4
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
re604cd rf498f10 65 65 ifneq ($(SINGUNAME),ix86-Win) 66 66 LDFLAGS = -L../kernel -lkernel @LDFLAGS@ 67 LDFLAGSG = -L../kernel -lkernel-g @LDFLAGS@ 67 68 else 68 69 ## -L/usr/local/lib -L../modules/python --> PySingular 69 70 LDFLAGS = -L../kernel -L/bin -lkernel @LDFLAGS@ -L/usr/local/lib -L../modules/python 70 endif 71 LDFLAGSG = -L../kernel -lkernel-g @LDFLAGS@ 71 LDFLAGSG = -L../kernel -L/bin -lkernel-g @LDFLAGS@ 72 endif 72 73 LD_DYN_FLAGS = @LD_DYN_FLAGS@ 73 74 SFLAGS = @SFLAGS@ -
Singular/extra.cc
re604cd rf498f10 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.23 2 2005-11-18 12:42:43wienand Exp $ */4 /* $Id: extra.cc,v 1.233 2005-11-27 13:56:02 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 54 54 #include "prCopy.h" 55 55 #include "mpr_complex.h" 56 57 #ifdef HAVE_RING2TOM 58 #include "ringgb.h" 59 #endif 56 60 57 61 #ifdef HAVE_WALK … … 2494 2498 else 2495 2499 #endif 2500 #ifdef HAVE_RING2TOM 2501 /*==================== ring-GB ==================================*/ 2502 if (strcmp(sys_cmd, "NF_ring")==0) 2503 { 2504 ring r = currRing; 2505 poly f = (poly) h->Data(); 2506 h = h->next; 2507 ideal G = (ideal) h->Data(); 2508 res->rtyp=POLY_CMD; 2509 res->data=(poly) ringNF(f, G, r); 2510 return(FALSE); 2511 } 2512 else 2513 if (strcmp(sys_cmd, "redNF_ring")==0) 2514 { 2515 ring r = currRing; 2516 poly f = (poly) h->Data(); 2517 h = h->next; 2518 ideal G = (ideal) h->Data(); 2519 res->rtyp=POLY_CMD; 2520 res->data=(poly) ringRedNF(f, G, r); 2521 return(FALSE); 2522 } 2523 else 2524 if (strcmp(sys_cmd, "reduce_fct")==0) 2525 { 2526 ring r = currRing; 2527 poly f = (poly)h->Data(); 2528 res->rtyp=POLY_CMD; 2529 res->data=NULL; 2530 return(FALSE); 2531 } 2532 else 2533 #endif 2496 2534 /*==================== t-rep-GB ==================================*/ 2497 2535 if (strcmp(sys_cmd, "unifastmult")==0) -
Singular/ipshell.cc
re604cd rf498f10 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.13 0 2005-10-24 11:55:34 SingularExp $ */4 /* $Id: ipshell.cc,v 1.131 2005-11-27 13:56:03 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 577 577 } 578 578 579 #ifdef HAVE_RING2TOM 580 BOOLEAN Is2toM(int p) /* brute force !!!! */ 581 { 582 int test = p; 583 while (p%2 == 0) { 584 p = p / 2; 585 } 586 return (p == 1); 587 } 588 #endif 589 579 590 int IsPrime(int p) /* brute force !!!! */ 580 591 { … … 4342 4353 { 4343 4354 int ch; 4355 int cring = 0; 4344 4356 int float_len=0; 4345 4357 int float_len2=0; … … 4426 4438 } 4427 4439 } 4428 else 4429 ch = IsPrime(ch); 4440 else { 4441 #ifdef HAVE_RING2TOM 4442 if (Is2toM(ch)) { 4443 cring = 1; // Use Z/2^ch 4444 Print("Beta: using Z/2^%d", ch); 4445 PrintLn(); 4446 } 4447 else 4448 #endif 4449 ch = IsPrime(ch); 4450 } 4430 4451 } 4431 4452 // allocated ring and set ch 4432 4453 R = (ring) omAlloc0Bin(sip_sring_bin); 4433 4454 R->ch = ch; 4455 R->cring = cring; 4434 4456 if (ch == -1) 4435 4457 {
Note: See TracChangeset
for help on using the changeset viewer.