14namespace layer5_applications {
36 int f_v = (verbose_level >= 1);
39 cout <<
"spread_table_activity::init" << endl;
46 cout <<
"spread_table_activity::init done" << endl;
52 int f_v = (verbose_level >= 1);
55 cout <<
"f_find_spread" << endl;
56 long int *spread_elts;
66 cout <<
"the set does not have the right size" << endl;
67 cout <<
"sz=" << sz << endl;
76 cout <<
"The given spread has index " << idx <<
" in the spread table" << endl;
81 cout <<
"f_find_spread_and_dualize" << endl;
82 long int *spread_elts;
92 cout <<
"the set does not have the right size" << endl;
93 cout <<
"sz=" << sz << endl;
103 cout <<
"The given spread has index " << a <<
" in the spread table" << endl;
107 cout <<
"The dual spread has index " << b <<
" in the spread table" << endl;
111 cout <<
"f_dualize_packing" << endl;
114 long int *dual_packing;
122 cout <<
"The packing is : ";
127 for (
int i = 0; i < sz; i++) {
133 cout <<
"The dual packing is : ";
139 cout <<
"f_print_spread" << endl;
146 cout <<
"before report_spreads" << endl;
152 cout <<
"f_export_spreads_to_csv" << endl;
159 cout <<
"before export_spreads_to_csv" << endl;
165 cout <<
"f_find_spreads_containing_two_lines" << endl;
177 cout <<
"We found " << v.size() <<
" spreads containing " << line1 <<
" and " << line2 << endl;
178 cout <<
"They are:" << endl;
179 for (i = 0; i < v.size(); i++) {
181 if (i < v.size() - 1) {
190 cout <<
"f_find_spreads_containing_one_line" << endl;
199 for (line2 = 0; line2 <
P->
P3->
N_lines; line2++) {
200 if (line2 == line1) {
215 cout <<
"type of covering based on all lines together with line " << line1 <<
":" << endl;
221 cout <<
"spread_table_activity::perform_activity" << endl;
230 int f_v = (verbose_level >= 1);
234 cout <<
"spread_table_activity::export_spreads_to_csv" << endl;
242 for (i = 0; i < nb; i++) {
243 long int *spread_elts;
252 cout <<
"Written file " << fname <<
" of size " << Fio.
file_size(fname) << endl;
255 cout <<
"spread_table_activity::export_spreads_to_csv done" << endl;
261 int f_v = (verbose_level >= 1);
265 cout <<
"spread_table_activity::report_spreads" << endl;
274 snprintf(title, 1000,
"Spreads");
278 sprintf(str,
"Spreads");
286 for (i = 0; i < nb; i++) {
288 sprintf(str,
"_%d", idx);
291 fname.append(
".tex");
310 cout <<
"spread_table_activity::report_spread before report_spread2" << endl;
315 for (i = 0; i < nb; i++) {
320 cout <<
"spread_table_activity::report_spread after report_spread2" << endl;
324 cout <<
"spread_table_activity::report_spread after report_spread2" << endl;
333 cout <<
"written file " << fname <<
" of size "
338 cout <<
"spread_table_activity::report_spread done" << endl;
344 int f_v = (verbose_level >= 1);
347 cout <<
"spread_table_activity::report_spread2" << endl;
350 long int *spread_elts;
355 ost <<
"The spread " << spread_idx <<
" is:\\\\" << endl;
357 ost <<
"\\\\" << endl;
362 cout <<
"spread_table_activity::report_spread2 done" << endl;
a collection of functions related to sorted vectors
void lint_vec_heapsort(long int *v, int len)
a statistical analysis of data consisting of single integers
void init(int *data, int data_length, int f_second, int verbose_level)
void print(int f_backwards)
void print_set_tex(std::ostream &ost, long int *v, int len)
long int * dual_spread_idx
a collection of functions related to file io
void lint_matrix_write_csv(std::string &fname, long int *M, int m, int n)
long int file_size(std::string &fname)
interface to create latex output files
void head(std::ostream &ost, int f_book, int f_title, const char *title, const char *author, int f_toc, int f_landscape, int f_12pt, int f_enlarged_page, int f_pagenumbers, const char *extras_for_preamble)
void foot(std::ostream &ost)
classification of packings in PG(3,q)
geometry::projective_space * P3
spreads::spread_table_with_selection * Spread_table_with_selection
int find_spread(long int *set, int verbose_level)
description of an activity for a spread table
int f_find_spreads_containing_one_line
int find_spreads_containing_one_line_line_idx
std::string export_spreads_to_csv_fname
int find_spreads_containing_two_lines_line1
std::string export_spreads_to_csv_idx_text
std::string print_spreads_idx_text
std::string find_spread_and_dualize_text
std::string dualize_packing_text
int f_find_spread_and_dualize
int f_find_spreads_containing_two_lines
std::string find_spread_text
int find_spreads_containing_two_lines_line2
int f_export_spreads_to_csv
void init(spreads::spread_table_activity_description *Descr, packings::packing_classify *P, int verbose_level)
packings::packing_classify * P
void report_spreads(int *spread_idx, int nb, int verbose_level)
void perform_activity(int verbose_level)
void export_spreads_to_csv(std::string &fname, int *spread_idx, int nb, int verbose_level)
void report_spread2(std::ostream &ost, int spread_idx, int verbose_level)
spread_table_activity_description * Descr
void find_spreads_containing_two_lines(std::vector< int > &v, int line1, int line2, int verbose_level)
geometry::spread_tables * Spread_tables
long int * get_spread(int spread_idx)
#define Int_vec_scan(A, B, C)
#define Int_vec_zero(A, B)
#define Lint_vec_scan(A, B, C)
#define Lint_vec_print(A, B, C)
the orbiter library for the classification of combinatorial objects