Changeset b3e45f in git
- Timestamp:
- Feb 6, 2009, 4:16:17 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 9bb97ef0a0e640ba336498902b874a16dc7b978e
- Parents:
- 50ab25a42bd6c030a238eab6104c61f1242e474c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r50ab25a rb3e45f 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.29 0 2009-02-06 07:54:11monerjan Exp $ */4 /* $Id: extra.cc,v 1.291 2009-02-06 15:16:16 monerjan Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 3075 3075 ideal I=((ideal)h->Data()); 3076 3076 res->rtyp=IDEAL_CMD; 3077 /* 3078 to do: 3079 create ../kernel/gfan.h & ../kernel/gfan.cc 3080 #include "gfan.h" 3081 3082 res->data=(void*) gfan(I); //needs to be included 3083 */ 3077 res->data=(ideal) gfan(I); 3084 3078 3085 3079 return FALSE; //Everything went fine -
kernel/gfan.cc
r50ab25a rb3e45f 1 /* 2 Compute the Gröbner fan of an ideal 3 */ 4 1 5 #include "mod2.h" 2 6 #include "kstd1.h" 3 7 #include "intvec.h" 4 8 5 int getGB(ideal inputIdeal){ 6 //kStd(inputIdeal); 9 #ifndef gfan_DEBUG 10 #define gfan_DEBUG 11 #endif 12 13 ideal getGB(ideal inputIdeal){ 14 ideal gb; 15 gb=kStd(inputIdeal,NULL,testHomog,NULL); //Possible to call without testHomog/isHomog? 16 // Why are 64 "results" printed? 17 #ifdef gfan_DEBUG 18 printf("Now in getGB\n"); 19 #endif 20 return gb; 7 21 } 8 22 23 ideal gfan(ideal inputIdeal){ 24 #ifdef gfan_DEBUG 25 printf("Now in subroutine gfan\n"); 26 #endif 27 ideal res; 28 res=getGB(inputIdeal); 29 return res; 30 } 31 -
kernel/gfan.h
r50ab25a rb3e45f 2 2 3 3 ideal getGB(ideal inputIdeal); 4 ideal gfan(ideal inputIdeal);
Note: See TracChangeset
for help on using the changeset viewer.