Changeset b07ba77 in git
- Timestamp:
- Jan 15, 2010, 4:00:32 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- bf3f332d4e29104e80aaf5520f04b6d65789298a
- Parents:
- 995a6af88b866ab378e0031cf03c0b84fb35b292
- Location:
- kernel
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/clapsing.cc
r995a6a rb07ba77 17 17 #include "numbers.h" 18 18 #include "ring.h" 19 #include "ideals.h" 19 20 #include "ffields.h" 20 21 #include <factory.h> -
kernel/febase.cc
r995a6a rb07ba77 27 27 #include "dError.h" 28 28 29 #define fePutChar(c) fputc((u char)(c),stdout)29 #define fePutChar(c) fputc((unsigned char)(c),stdout) 30 30 /*0 implementation */ 31 31 -
kernel/febase.h
r995a6a rb07ba77 78 78 size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream); 79 79 80 enum noeof_t 81 { 82 noeof_brace = 1, 83 noeof_asstring, 84 noeof_block, 85 noeof_bracket, 86 noeof_comment, 87 noeof_procname, 88 noeof_string 89 }; /* for scanner.l */ 80 90 81 91 extern char* feErrors; -
kernel/ideals.cc
r995a6a rb07ba77 32 32 #include "prCopy.h" 33 33 34 35 34 omBin sip_sideal_bin = omGetSpecBin(sizeof(sip_sideal)); 36 35 37 36 /* #define WITH_OLD_MINOR */ -
kernel/ideals.h
r995a6a rb07ba77 10 10 #include "structs.h" 11 11 #include "ring.h" 12 13 struct sip_sideal 14 { 15 poly* m; 16 long rank; 17 int nrows; 18 int ncols; 19 #define IDELEMS(i) ((i)->ncols) 20 }; 21 22 struct sip_smap 23 { 24 poly *m; 25 char *preimage; 26 int nrows; 27 int ncols; 28 }; 29 30 struct sideal_list; 31 typedef struct sideal_list * ideal_list; 32 struct sideal_list 33 { 34 ideal_list next; 35 ideal d; 36 #ifndef NDEBUG 37 int nr; 38 #endif 39 }; 40 41 //typedef struct sip_sideal * ideal; 42 //typedef struct sip_smap * map; 43 typedef ideal * resolvente; 44 45 46 extern omBin sip_sideal_bin; 12 47 13 48 #ifdef PDEBUG -
kernel/kbuckets.cc
r995a6a rb07ba77 1007 1007 // But better declare it extern than including polys.h 1008 1008 extern void pTakeOutComp(poly *p, Exponent_t comp, poly *q, int *lq); 1009 void pDecrOrdTakeOutComp(poly *p, Exponent_t comp, Order_torder,1009 void pDecrOrdTakeOutComp(poly *p, Exponent_t comp, long order, 1010 1010 poly *q, int *lq); 1011 1011 … … 1046 1046 1047 1047 void kBucketDecrOrdTakeOutComp(kBucket_pt bucket, 1048 Exponent_t comp, Order_torder,1048 Exponent_t comp, long order, 1049 1049 poly *r_p, int *l) 1050 1050 { -
kernel/kbuckets.h
r995a6a rb07ba77 105 105 // m1 >= m2 ==> pGetOrder(m1) >= pGetOrder(m2) 106 106 void kBucketDecrOrdTakeOutComp(kBucket_pt bucket, 107 Exponent_t comp, Order_torder,107 Exponent_t comp, long order, 108 108 poly *p, int *l); 109 109 -
kernel/maps.h
r995a6a rb07ba77 9 9 */ 10 10 #include "structs.h" 11 typedef ip_smap * map; 11 #include "ideals.h" 12 12 13 13 poly maEval(map theMap, poly p, ring preimage_r, nMapFunc nMap,matrix s=NULL); -
kernel/misc.cc
r995a6a rb07ba77 48 48 49 49 omBin char_ptr_bin = omGetSpecBin(sizeof(char_ptr)); 50 omBin ideal_bin = omGetSpecBin(sizeof(ideal));51 50 omBin indlist_bin = omGetSpecBin(sizeof(indlist)); 52 51 omBin naIdeal_bin = omGetSpecBin(sizeof(naIdeal)); 53 52 omBin snaIdeal_bin = omGetSpecBin(sizeof(snaIdeal)); 54 53 omBin smprec_bin = omGetSpecBin(sizeof(smprec)); 55 omBin sip_sideal_bin = omGetSpecBin(sizeof(sip_sideal));56 omBin sip_smap_bin = omGetSpecBin(sizeof(sip_smap));57 54 omBin sip_sring_bin = omGetSpecBin(sizeof(sip_sring)); 58 55 -
kernel/pInline2.h
r995a6a rb07ba77 38 38 39 39 // order 40 PINLINE2 Order_tp_GetOrder(poly p, ring r)40 PINLINE2 long p_GetOrder(poly p, ring r) 41 41 { 42 42 p_LmCheckPolyRing2(p, r); … … 62 62 } 63 63 64 PINLINE2 Order_tp_SetOrder(poly p, long o, ring r)64 PINLINE2 long p_SetOrder(poly p, long o, ring r) 65 65 { 66 66 p_LmCheckPolyRing2(p, r); -
kernel/p_polys.cc
r995a6a rb07ba77 23 23 #include "p_polys.h" 24 24 #include "ring.h" 25 #include "ideals.h" 25 26 #include "int64vec.h" 26 27 #ifndef NDEBUG -
kernel/p_polys.h
r995a6a rb07ba77 67 67 68 68 // get Order 69 PINLINE2 Order_tp_GetOrder(poly p, ring r);69 PINLINE2 long p_GetOrder(poly p, ring r); 70 70 // don't use this 71 PINLINE2 Order_tp_SetOrder(poly p, long order, ring r);71 PINLINE2 long p_SetOrder(poly p, long order, ring r); 72 72 73 73 // Component -
kernel/polys.cc
r995a6a rb07ba77 575 575 } 576 576 577 void pDecrOrdTakeOutComp(poly *r_p, Exponent_t comp, Order_torder,577 void pDecrOrdTakeOutComp(poly *r_p, Exponent_t comp, long order, 578 578 poly *r_q, int *lq) 579 579 { -
kernel/polys.h
r995a6a rb07ba77 403 403 // ASSUME: monomial ordering is Order compatible, i.e., if m1, m2 Monoms then 404 404 // m1 >= m2 ==> pGetOrder(m1) >= pGetOrder(m2) 405 void pDecrOrdTakeOutComp(poly *p, Exponent_t comp, Order_torder,405 void pDecrOrdTakeOutComp(poly *p, Exponent_t comp, long order, 406 406 poly *q, int *lq); 407 407 // This is something weird -- Don't use it, unless you know what you are doing -
kernel/ring.h
r995a6a rb07ba77 15 15 16 16 #define SHORT_REAL_LENGTH 6 // use short reals for real <= 6 digits 17 18 #if 0 19 enum n_coeffType 20 { 21 n_unknown=0, 22 n_Zp, 23 n_Q, 24 n_R, 25 n_GF, 26 n_long_R, 27 n_Zp_a, 28 n_Q_a, 29 n_long_C 30 }; 31 #endif 32 33 34 // #ifdef HAVE_PLURAL 35 #if 0 36 enum nc_type 37 { 38 nc_error = -1, // Something's gone wrong! 39 nc_general = 0, /* yx=q xy+... */ 40 nc_skew, /*1*/ /* yx=q xy */ 41 nc_comm, /*2*/ /* yx= xy */ 42 nc_lie, /*3*/ /* yx=xy+... */ 43 nc_undef, /*4*/ /* for internal reasons */ 44 45 nc_exterior /*5*/ // Exterior Algebra(SCA): yx= -xy & (!:) x^2 = 0 46 }; 47 #endif 48 // #endif 49 17 50 18 51 extern ring currRing; -
kernel/structs.h
r995a6a rb07ba77 19 19 20 20 /* standard types */ 21 typedef unsigned char uchar;22 21 typedef unsigned short CARDINAL; 23 22 #ifdef HAVE_RINGS … … 36 35 #define ADDRESS Sy_reference 37 36 #define BITSET unsigned int 38 39 /* EXPONENT_TYPE is determined by configure und defined in mod2.h */40 37 41 38 #if defined(SI_CPU_I386) || defined(SI_CPU_X86_64) … … 79 76 80 77 typedef long Exponent_t; 81 typedef long Order_t;82 78 83 79 enum tHomog … … 86 82 isHomog = TRUE, 87 83 testHomog 88 };89 enum noeof_t90 {91 noeof_brace = 1,92 noeof_asstring,93 noeof_block,94 noeof_bracket,95 noeof_comment,96 noeof_procname,97 noeof_string98 84 }; 99 85 … … 152 138 struct n_Procs_s; 153 139 struct sip_sring; 154 struct sip_sideal;155 140 struct sip_link; 156 141 struct spolynom; … … 161 146 struct s_si_link_extension; 162 147 148 // forward for ideals.h: 149 struct sip_sideal; 150 struct sip_smap; 151 typedef struct sip_smap * map; 152 typedef struct sip_sideal * ideal; 153 154 163 155 typedef struct n_Procs_s n_Procs_s; 164 156 … … 171 163 typedef struct _sssym ssym; 172 164 typedef struct spolyrec polyrec; 173 typedef struct sip_sideal ip_sideal;174 typedef struct sip_smap ip_smap;175 165 typedef struct sip_sring ip_sring; 176 166 typedef struct sip_link ip_link; … … 186 176 typedef polyrec * poly; 187 177 typedef poly * polyset; 188 typedef ip_sideal * ideal;189 typedef ip_smap * map;190 typedef struct sideal_list * ideal_list;191 typedef ideal * resolvente;192 178 typedef union uutypes utypes; 193 179 typedef ip_command * command; … … 304 290 int char_flag; 305 291 int ref; 292 n_coeffType type; 306 293 short nChar; 307 n_coeffType type; 308 }; 309 310 extern idhdl currPackHdl; 311 extern idhdl basePackHdl; 312 extern package currPack; 313 extern package basePack; 314 #define IDROOT (currPack->idroot) 294 }; 315 295 316 296 /* the function pointer types */ … … 502 482 // internal data for different implementations 503 483 // if dynamic => must be deallocated in destructor (nc_rKill!) 504 union { 505 struct { 484 union 485 { 486 struct 487 { 506 488 // treat variables from iAltVarsStart till iAltVarsEnd as alternating vars. 507 489 // these variables should have odd degree, though that will not be checked … … 514 496 ideal idSCAQuotient; // = NULL by default. // must be deleted in Kill! 515 497 } sca; 516 517 498 } data; 518 499 … … 556 537 }; 557 538 #endif 558 #if 0559 struct nc_struct560 {561 short ref;562 nc_type type;563 ring basering; // the ring C,D,.. live in564 matrix C;565 matrix D;566 matrix *MT;567 matrix COM;568 int *MTsize;569 int IsSkewConstant; /* indicates whethere coeffs C_ij are all equal */570 /* effective together with nc_type=nc_skew */571 };572 #endif573 574 539 575 540 struct sip_sring … … 603 568 ideal qideal; /* extension to the ring structure: qring, rInit */ 604 569 605 606 570 int* firstwv; 607 571 … … 643 607 644 608 BOOLEAN ComponentOrder; // ??? 645 646 609 647 610 // what follows below here should be set by rComplete, _only_ … … 699 662 }; 700 663 701 struct sip_sideal702 {703 poly* m;704 long rank;705 int nrows;706 int ncols;707 #define IDELEMS(i) ((i)->ncols)708 };709 710 struct sip_smap711 {712 poly *m;713 char *preimage;714 int nrows;715 int ncols;716 };717 718 struct sideal_list719 {720 ideal_list next;721 ideal d;722 #ifndef NDEBUG723 int nr;724 #endif725 };726 664 #endif /* __cplusplus */ 727 665 … … 890 828 891 829 extern struct omBin_s* char_ptr_bin; 892 extern struct omBin_s* ideal_bin;893 830 extern struct omBin_s* indlist_bin; 894 831 extern struct omBin_s* naIdeal_bin; 895 832 extern struct omBin_s* snaIdeal_bin; 896 833 extern struct omBin_s* smprec_bin; 897 extern struct omBin_s* sip_sideal_bin;898 extern struct omBin_s* sip_smap_bin;899 834 extern struct omBin_s* sip_sring_bin; 900 835 extern struct omBin_s* sleftv_bin; -
kernel/syz.h
r995a6a rb07ba77 10 10 #include "structs.h" 11 11 #include "ring.h" 12 #include "ideals.h" 12 13 13 14 // Logarithm of estimate of maximal number of new components -
kernel/syz1.cc
r995a6a rb07ba77 1516 1516 { 1517 1517 int i,j=1,k; 1518 Order_tdeg = 0;1518 long deg = 0; 1519 1519 1520 1520 PrintLn(); … … 2513 2513 ((idRankFreeModule(arg)>0) && (!idHomModule(arg,NULL,&(syzstr->cw))))) 2514 2514 { 2515 syzstr->minres = (resolvente)omAlloc0Bin( ideal_bin);2515 syzstr->minres = (resolvente)omAlloc0Bin(char_ptr_bin); 2516 2516 syzstr->length = 1; 2517 2517 syzstr->minres[0] = idInit(1,arg->rank); … … 2636 2636 ((idRankFreeModule(arg)>0) && (!idTestHomModule(arg, NULL, syzstr->cw)))) 2637 2637 { 2638 syzstr->minres = (resolvente)omAlloc0Bin( ideal_bin);2638 syzstr->minres = (resolvente)omAlloc0Bin(char_ptr_bin); 2639 2639 syzstr->length = 1; 2640 2640 syzstr->minres[0] = idInit(1,arg->rank);
Note: See TracChangeset
for help on using the changeset viewer.