Skip to content

Commit cf8aeb1

Browse files
committed
javadoc
1 parent 9a19e57 commit cf8aeb1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/main/java/de/tilman_neumann/jml/factor/base/matrixSolver/BlockLanczos.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public class BlockLanczos implements Serializable {
3535
* A row contains the indices of the primes that occur in the smooth part of the relation with odd exponent.
3636
* As such, the size of the sub-arrays depends on each relation. matrixB is not changed by the Block-Lanczos algorithm.
3737
*
38-
* @param matrixBlength number of rows
38+
* @param matrixBlength the number of rows and also the number of base primes
3939
*
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.
4242
*/
4343
public int[] computeBlockLanczos(final int[][] matrixB, int matrixBlength) {
4444
int i, j, k;
@@ -59,12 +59,16 @@ public int[] computeBlockLanczos(final int[][] matrixB, int matrixBlength) {
5959
int[] matrixAV = new int[matrixBlength];
6060
int[] matrixCalcParenD = new int[32];
6161
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 */
6364
int[] matrixV = new int[matrixBlength];
65+
6466
int[] matrixV1 = new int[matrixBlength];
6567
int[] matrixV2 = new int[matrixBlength];
66-
// matrix X-Y
68+
69+
/** matrix X-Y, the second-most important matrix, encoded like matrixV */
6770
int[] matrixXmY = new int[matrixBlength];
71+
6872
int[] matrixCalc3 = new int[matrixBlength]; // Matrix that holds temporary data
6973
int[] matrixTemp;
7074
int[] matrixCalc1 = new int[32]; // Matrix that holds temporary data

0 commit comments

Comments
 (0)