add documentation
This commit is contained in:
31
hyperbolic.c
31
hyperbolic.c
@@ -291,24 +291,23 @@ int main(int argc, const char *argv[])
|
||||
|
||||
nspecial_hyp = nspecial_rot = 0;
|
||||
for(int i = 0; i < nspecial; i++) {
|
||||
LOOP(j) {
|
||||
int nreal;
|
||||
int j = 0;
|
||||
int nreal;
|
||||
|
||||
compute_word(ws, special[3*i+j], gen, argv[i+5], j, 0);
|
||||
nreal = eigenvectors(special[3*i+j], special_eigenvectors[3*i+j], ws);
|
||||
if(nreal == 3) {
|
||||
special_attracting[nspecial_hyp] = column(special_eigenvectors[3*i+j], 0);
|
||||
compute_word(ws, special[3*i+j], gen, argv[i+5], j, 0);
|
||||
nreal = eigenvectors(special[3*i+j], special_eigenvectors[3*i+j], ws);
|
||||
if(nreal == 3) {
|
||||
special_attracting[nspecial_hyp] = column(special_eigenvectors[3*i+j], 0);
|
||||
|
||||
// repelling = attracting of inverse
|
||||
compute_word(ws, special[3*i+j], gen, argv[i+5], j, 1);
|
||||
eigenvectors(special[3*i+j], special_eigenvectors[3*i+j], ws);
|
||||
special_repelling[nspecial_hyp] = column(special_eigenvectors[3*i+j], 0);
|
||||
nspecial_hyp++;
|
||||
} else {
|
||||
special_rotation[nspecial_rot] = column(special_eigenvectors[3*i+j], 0);
|
||||
nspecial_rot++;
|
||||
}
|
||||
}
|
||||
// repelling = attracting of inverse
|
||||
compute_word(ws, special[3*i+j], gen, argv[i+5], j, 1);
|
||||
eigenvectors(special[3*i+j], special_eigenvectors[3*i+j], ws);
|
||||
special_repelling[nspecial_hyp] = column(special_eigenvectors[3*i+j], 0);
|
||||
nspecial_hyp++;
|
||||
} else {
|
||||
special_rotation[nspecial_rot] = column(special_eigenvectors[3*i+j], 0);
|
||||
nspecial_rot++;
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "%d special elements, %d rotations, %d hyperbolic\n", nspecial, nspecial_rot, nspecial_hyp);
|
||||
|
||||
Reference in New Issue
Block a user