@@ -35,10 +35,10 @@ public class BlockLanczos implements Serializable {
35
35
* A row contains the indices of the primes that occur in the smooth part of the relation with odd exponent.
36
36
* As such, the size of the sub-arrays depends on each relation. matrixB is not changed by the Block-Lanczos algorithm.
37
37
*
38
- * @param matrixBlength number of rows
38
+ * @param matrixBlength the number of rows and also the number of base primes
39
39
*
40
- * @return The solution matrix matrixV. This matrix can encode 32 different potential solutions: one in bit 0 of all ints,
41
- * the next one in bit 1 of all ints, and so on.
40
+ * @return The solution matrix matrixV. This matrix has one int-entry for each base prime, and can encode 32 different potential solutions:
41
+ * One in bit 0 of all ints, the next one in bit 1 of all ints, and so on.
42
42
*/
43
43
public int [] computeBlockLanczos (final int [][] matrixB , int matrixBlength ) {
44
44
int i , j , k ;
@@ -59,12 +59,16 @@ public int[] computeBlockLanczos(final int[][] matrixB, int matrixBlength) {
59
59
int [] matrixAV = new int [matrixBlength ];
60
60
int [] matrixCalcParenD = new int [32 ];
61
61
int [] vectorIndex = new int [64 ];
62
- // The solution matrix, encoding up to 32 solutions, one in bit 0 of all ints, one in bit 1 of all ints, and so on
62
+
63
+ /** The solution matrix, encoding up to 32 solutions, one in bit 0 of all ints, one in bit 1 of all ints, and so on */
63
64
int [] matrixV = new int [matrixBlength ];
65
+
64
66
int [] matrixV1 = new int [matrixBlength ];
65
67
int [] matrixV2 = new int [matrixBlength ];
66
- // matrix X-Y
68
+
69
+ /** matrix X-Y, the second-most important matrix, encoded like matrixV */
67
70
int [] matrixXmY = new int [matrixBlength ];
71
+
68
72
int [] matrixCalc3 = new int [matrixBlength ]; // Matrix that holds temporary data
69
73
int [] matrixTemp ;
70
74
int [] matrixCalc1 = new int [32 ]; // Matrix that holds temporary data
0 commit comments