Changeset 4b7049 in git
- Timestamp:
- Jun 8, 2006, 8:07:06 AM (17 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 9cf06bf5bb055050a3eb4ad285a06b788c79823c
- Parents:
- 8dee806bede9bf5ad46984badc31c4ca67932402
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/claptmpl.cc
r8dee80 r4b7049 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: claptmpl.cc,v 1.3 2 2006-02-23 12:39:35bricken Exp $5 // $Id: claptmpl.cc,v 1.33 2006-06-08 06:07:06 bricken Exp $ 6 6 /* 7 7 * ABSTRACT - instantiation of all templates … … 210 210 template class dynamic_bitset<>; 211 211 template class vector<dynamic_bitset<> >; 212 #else 213 #include <vector> 214 using std::vector; 215 template class vector<bool>; 216 template class vector<vector<bool> >; 212 217 #endif 213 218 -
kernel/tgb.cc
r8dee80 r4b7049 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb.cc,v 1.9 3 2006-05-19 12:50:50bricken Exp $ */7 /* $Id: tgb.cc,v 1.94 2006-06-08 06:06:51 bricken Exp $ */ 8 8 /* 9 9 * ABSTRACT: slimgb and F4 implementation … … 1177 1177 ENLARGE(c->lengths,int); 1178 1178 #ifndef HAVE_BOOST 1179 #ifndef USE_STDVECBOOL 1180 1179 1181 ENLARGE(c->states, char*); 1182 #endif 1180 1183 #endif 1181 1184 ENLARGE(c->gcd_of_terms,poly); … … 1220 1223 1221 1224 #else 1225 #ifdef USE_STDVECBOOL 1226 1227 c->states.push_back(vector<bool>(i)); 1228 1229 1230 #else 1222 1231 if (i>0) 1223 1232 c->states[i]=(char*) omalloc(i*sizeof(char)); 1224 1233 else 1225 1234 c->states[i]=NULL; 1235 #endif 1226 1236 #endif 1227 1237 … … 2176 2186 /* omUnGetSpecBin(&(c->HeadBin)); */ 2177 2187 #ifndef HAVE_BOOST 2188 #ifdef USE_STDVECBOOL 2189 #else 2178 2190 h=omalloc(n*sizeof(char*)); 2179 2191 2180 2192 states=(char**) h; 2193 #endif 2181 2194 #endif 2182 2195 h=omalloc(n*sizeof(int)); … … 2321 2334 } 2322 2335 #ifndef HAVE_BOOST 2336 #ifndef USE_STDVECBOOL 2323 2337 for(int z=1 /* zero length at 0 */;z<c->n;z++){ 2324 2338 omfree(c->states[z]); 2325 2339 } 2326 2340 omfree(c->states); 2341 #endif 2327 2342 #endif 2328 2343 -
kernel/tgb_internal.h
r8dee80 r4b7049 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb_internal.h,v 1.4 0 2006-05-19 10:30:47bricken Exp $ */7 /* $Id: tgb_internal.h,v 1.41 2006-06-08 06:06:51 bricken Exp $ */ 8 8 /* 9 9 * ABSTRACT: tgb internal .h file … … 19 19 #include "stdlib.h" 20 20 //#define HAVE_BOOST 1 21 #define USE_STDVECBOOL 1 21 22 #ifdef HAVE_BOOST 22 23 #include "boost/dynamic_bitset.hpp" … … 25 26 using std::vector; 26 27 #endif 27 28 28 #ifdef USE_STDVECBOOL 29 #include <vector> 30 using std::vector; 31 #endif 29 32 #include "kutil.h" 30 33 #include "kInline.cc" … … 96 99 slimgb_alg(ideal I, int syz_comp,BOOLEAN F4); 97 100 virtual ~slimgb_alg(); 98 #ifndef HAVE_BOOST 101 #ifndef HAVE_BOOST 102 #ifdef USE_STDVECBOOL 103 vector<vector<bool> > states; 104 #else 99 105 char** states; 100 #else 106 #endif 107 #else 101 108 vector<dynamic_bitset<> > states; 102 109 #endif 103 110 ideal add_later; 104 111 ideal S;
Note: See TracChangeset
for help on using the changeset viewer.