Changeset d59666c in git
- Timestamp:
- Feb 16, 2009, 5:16:21 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 48573c96465cc2e4b9543dbc76760559e4288405
- Parents:
- 416ea2bc9e1b72d15cc10ae59eb6997e0a9e9355
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gfan.cc
r416ea2 rd59666c 2 2 Compute the Groebner fan of an ideal 3 3 Author: $Author: monerjan $ 4 Date: $Date: 2009-02-1 3 15:17:40$5 Header: $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.1 2 2009-02-13 15:17:40monerjan Exp $6 Id: $Id: gfan.cc,v 1.1 2 2009-02-13 15:17:40monerjan Exp $4 Date: $Date: 2009-02-16 16:16:21 $ 5 Header: $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.13 2009-02-16 16:16:21 monerjan Exp $ 6 Id: $Id: gfan.cc,v 1.13 2009-02-16 16:16:21 monerjan Exp $ 7 7 */ 8 8 … … 11 11 //A hack that hopefully will make compiler happy. Workaround only 12 12 //do the same in extra.cc and remove it befor committing! 13 //#ifndef HAVE_GFAN14 //#define HAVE_GFAN15 //#endif13 #ifndef HAVE_GFAN 14 #define HAVE_GFAN 15 #endif 16 16 17 17 #ifdef HAVE_GFAN … … 63 63 dd_colrange ddcols; 64 64 dd_rowset ddredrows; // # of redundant rows in ddineq 65 dd_rowset ddlinset; // the opposite 66 dd_rowindex ddnewpos; // all to make dd_Canonicalize happy 65 67 dd_NumberType ddnumb=dd_Real; //Number type 66 68 dd_ErrorType dderr=dd_NoError; // … … 126 128 } //for 127 129 130 //Maybe add another row to contain the constraints of the standard simplex? 131 128 132 #ifdef gfan_DEBUG 129 133 printf("The inequality matrix is:\n"); … … 144 148 145 149 //Remove reduntant rows here! 150 dd_MatrixCanonicalize(&ddineq, &ddlinset, &ddredrows, &ddnewpos, &dderr); 151 #ifdef gfan_DEBUG 152 printf("Having removed redundant rows, the inequalities now read:\n"); 153 dd_WriteMatrix(stdout,ddineq); 154 #endif 146 155 147 ddineq->representation=dd_Inequality; //We want our LP to be Ax>=0156 //ddineq->representation=dd_Inequality; //We want our LP to be Ax>=0 148 157 149 //Clean up but don't delete the return value! 158 //Clean up but don't delete the return value! (Whatever it will turn out to be) 150 159 dd_FreeMatrix(ddineq); 151 //dd_clear(ddrows); 152 //dd_clear(ddcols); 153 //dd_clear(ddredrows); 154 //dd_clear(ddnumb); 155 //dd_clear(dderr); 160 //set_free(ddrows); 161 //set_free(ddcols); 162 set_free(ddredrows); 163 //set_free(ddnumb); 164 //set_free(dderr); 165 free(ddnewpos); 166 //set_free(ddlinset); 156 167 dd_free_global_constants(); 157 168
Note: See TracChangeset
for help on using the changeset viewer.