Changeset a7050d in git
- Timestamp:
- Oct 30, 2013, 4:43:06 PM (11 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
- Children:
- 498c19ba58b5c09de9d8e73c06e67ca87962ebfe
- Parents:
- 2ad13d75dd269f473ec07a73cb2b92e60423d8b9
- git-author:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-10-30 16:43:06+01:00
- git-committer:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-10-30 16:47:04+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/modstd.lib
r2ad13d7 ra7050d 28 28 LIB "ring.lib"; 29 29 LIB "parallel.lib"; 30 31 //////////////////////////////////////////////////////////////////////////////// 32 33 static proc mod_init() 34 { 35 newstruct("ideal_primeTest", "ideal Ideal"); 36 } 30 37 31 38 //////////////////////////////////////////////////////////////////////////////// … … 379 386 if(typeof(II) == "string") 380 387 { 381 execute("ideal I = "+II+";");388 ideal I = `II`.Ideal; 382 389 } 383 390 else … … 480 487 list arguments; 481 488 int neededPrimes = neededSize-size(L); 489 ideal_primeTest Id; 490 Id.Ideal = I; 491 export(Id); 482 492 while(neededPrimes > 0) 483 493 { … … 488 498 p = prime(p-1); 489 499 if(p == 2) { ERROR("no more primes"); } 490 arguments[i] = list("I ", p);500 arguments[i] = list("Id", p); 491 501 } 492 502 parallelResults = parallelWaitAll("primeTest", arguments,
Note: See TracChangeset
for help on using the changeset viewer.