case class Result(basisChange: Array[Array[Int]], reducedGram: Array[Array[Double]])
Value parameters
basisChange
U, k x k, integer, unimodular (|det U| = 1, checked internally -- a failure here indicates a bug in reduce itself, not a caller error). Column c gives the coefficients of the c-th REDUCED generator as a combination of the ORIGINAL generators: reduced_c = sum_r U(r)(c) * original_r. Apply the SAME U to any other linear stand-in for the original generators -- the harmonic cocycles themselves, or the circular coordinates they produce -- to get the reduced version of that thing (both are linear in the choice of generator).
reducedGram
U^T G U: the reduced generators' own Gram matrix. Diagonal entries are the reduced generators' own squared norms, off-diagonal their pairwise correlation under the inner product G was built from -- smaller/more-diagonal than G is the whole point of reduction, and is what a caller checks to confirm it actually helped on real data.