18namespace layer4_classification {
49 cout <<
"representatives::free" << endl;
56 for (i = 0; i <
count; i++) {
84 int nb_objects, std::string &prefix,
int verbose_level)
86 int f_v = (verbose_level >= 1);
90 cout <<
"representatives::init prefix=" <<
prefix << endl;
113 fname_rep.append(
"classification_reps.txt");
138 int f_v = (verbose_level >= 1);
142 cout <<
"representatives::write_fusion" << endl;
145 cout <<
"representatives::write_fusion fname_fusion=" <<
fname_fusion << endl;
157 cout <<
"representatives::write_fusion "
158 "fusion[" << i <<
"] = -2" << endl;
161 f1 << setw(5) << i <<
" " << setw(3) <<
fusion[i] << endl;
175 cout <<
"representatives::write_fusion finished" << endl;
187 int f_v = (verbose_level >= 1);
192 cout <<
"representatives::read_fusion nb_objects="
196 cout <<
"representatives::read_fusion reading file "
202 cout <<
"representatives::read_fusion the file " <<
fname_fusion <<
" does not exist" << endl;
210 cout <<
"representatives::read_fusion "
218 cout <<
"representatives::read_fusion problem with end "
219 "of file marker" << endl;
224 cout <<
"representatives::read_fusion reading file "
240 cout <<
"representatives::read_fusion done" << endl;
247 int f_v = (verbose_level >= 1);
251 cout <<
"representatives::write_representatives_"
252 "and_stabilizers" << endl;
265 f1 << setw(3) <<
A->
base_i(i) <<
" ";
269 for (i = 0; i <
count; i++) {
280 f1 << setw(3) << i <<
" "
281 << setw(7) <<
rep[i] <<
" "
282 << setw(5) << cnt <<
" "
283 << setw(5) << SG.
len <<
" ";
287 f1 << setw(3) <<
tl[j] <<
" ";
292 for (j = 0; j < SG.
len; j++) {
302 cout <<
"representatives::write_representatives_and_"
303 "stabilizers finished" << endl;
304 cout <<
"written file " <<
fname_rep <<
" of size "
315 int f_v = (verbose_level >= 1);
319 cout <<
"representatives::read_representatives_and_"
320 "stabilizers" << endl;
321 cout <<
"reading files " <<
fname_rep <<
" and "
326 int i, j, len, a, b, c, d, e;
334 cout <<
"representatives::read_representatives_and_stabilizers "
335 "base_len does not match" << endl;
341 cout <<
"representatives::read_representatives_and_stabilizers "
342 "base point does not match" << endl;
346 for (i = 0; i <
count; i++) {
353 f1 >> a >> b >> c >> d >> e;
355 cout <<
"representatives::read_representatives_and_stabilizers "
362 gens.
init(
A, verbose_level - 2);
363 gens.
allocate(len, verbose_level - 2);
367 for (j = 0; j < len; j++) {
371 cout <<
"representative of orbit " << i <<
" read" << endl;
372 cout <<
"stabilizer is generated by" << endl;
373 for (j = 0; j < len; j++) {
374 cout <<
"generator " << j <<
":" << endl;
378 cout <<
"transversal lengths:" << endl;
382 Stab->
init(
A, verbose_level - 2);
387 cout <<
"representatives::read_representatives_and_stabilizers "
388 "stabilizer " << i <<
" has order " << go << endl;
393 cout <<
"representatives::read_representatives_and_stabilizers "
394 "problems reading end of file marker" << endl;
400 cout <<
"representatives::read_representatives_and_stabilizers "
407 int f_v = (verbose_level >= 1);
410 cout <<
"representatives::save" << endl;
415 cout <<
"representatives::save done" << endl;
421 int f_v = (verbose_level >= 1);
424 cout <<
"representatives::load" << endl;
427 cout <<
"representatives::load before read_fusion" << endl;
431 cout <<
"representatives::load after read_fusion" << endl;
434 cout <<
"representatives::load before read_representatives_and_stabilizers" << endl;
438 cout <<
"representatives::load after read_representatives_and_stabilizers" << endl;
441 cout <<
"representatives::load done found " <<
count
442 <<
" orbit representatives" << endl;
460 else if (
fusion[i] >= 0) {
469 cout <<
"nb_reps = " <<
nb_reps << endl;
470 cout <<
"nb_fused = " <<
nb_fused << endl;
471 cout <<
"nb_open = " <<
nb_open << endl;
a collection of functions related to file io
long int file_size(std::string &fname)
a class to represent arbitrary precision integers
void print_width(std::ostream &ost, int width)
a permutation group in a fixed action.
void element_retrieve(int hdl, void *elt, int verbose_level)
void element_write_file_fp(int *Elt, std::ofstream &fp, int verbose_level)
void element_read_file_fp(int *Elt, std::ifstream &fp, int verbose_level)
void print(std::ostream &ost, void *elt)
int element_store(void *elt, int verbose_level)
to hold a vector of group elements
void allocate(int length, int verbose_level)
void init(actions::action *A, int verbose_level)
a permutation group represented via a stabilizer chain
void init(actions::action *A, int verbose_level)
void extract_strong_generators_in_order(data_structures_groups::vector_ge &SG, int *tl, int verbose_level)
void group_order(ring_theory::longinteger_object &go)
void init_generators(data_structures_groups::vector_ge &generators, int verbose_level)
void compute_base_orbits(int verbose_level)
void print_fusion_statistics()
void write_representatives_and_stabilizers(int verbose_level)
void save(int verbose_level)
void read_representatives_and_stabilizers(int verbose_level)
std::string fname_stabgens
void read_fusion(int verbose_level)
std::string fname_fusion_ge
void init(actions::action *A, int nb_objects, std::string &prefix, int verbose_level)
void calc_fusion_statistics()
void write_fusion(int verbose_level)
void load(int verbose_level)
#define Int_vec_print(A, B, C)
the orbiter library for the classification of combinatorial objects