![]() |
|
|
#1 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Quote:
2) The array of bits in little endian order: You mean that the first word gives the entries in the 0-7th dense rows? But, confusingly enough, bit shifts work in big endian fashion, so the 0th dense row is (byte0) & 1, the 1st is (byte0>>1) & 1, and the nth column (n < 8) is (byte0>>n) & 1? And then the 8th dense row is byte1 & 1, and the 9th is (byte1>>1) & 1? Last fiddled with by Dubslow on 2012-08-21 at 07:02 |
|
|
|
|
|
|
#2 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Whoops, only now did I see this:
Quote:
|
|
|
|
|
|
|
#3 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
The bit positions are chosen so that you can recover bit position X by performing a multiple precision shift-and-mask-bit operation on the dense array for each entry in the matrix. I didn't care about endian-independence; only 5-year-old PowerPCs and the occasional supercomputer are big-endian anymore, and neither of these will restart a LA job that was started elsewhere.
|
|
|
|
|
|
#4 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Quote:
*I still have a freeze-dried
|
|
|
|
|
|
|
#5 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Another stupid question:
According to this paper (pg 4) and common sense, given x^2==y^2 mod n, then gcd(x-y,n) might reveal a factor where gcd(x+y,n) doesn't. Why, then, does Msieve only do the latter gcd? (trunk/gnfs/sqrt/sqrt.c, line 486: `mpz_add(tmp1, sqrt_r, sqrt_a); mpz_gcd(tmp1, tmp1, n);` ... ) |
|
|
|
|
|
#6 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
It used to do both GCDs, but Pari's MPQS code proved that doing one is sufficient; see the comments there.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting CWI format to ggnfs format | xilman | Msieve | 2 | 2015-11-27 09:54 |
| CWI format --> GGNFS format | R.D. Silverman | Msieve | 25 | 2013-04-17 07:40 |
| On relations file format | Dubslow | Factoring | 15 | 2012-08-20 10:05 |
| 12+256 matrix job | fivemack | Factoring | 11 | 2009-08-18 17:39 |
| [Need help] about Matrix Polynomial | buan | Homework Help | 3 | 2007-07-17 15:07 |