Orbiter 2022
Combinatorial Objects
tdo_scheme_compute.cpp
Go to the documentation of this file.
1/*
2 * tdo_scheme_compute.cpp
3 *
4 * Created on: Dec 18, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "foundations.h"
12
13
14using namespace std;
15
16
17namespace orbiter {
18namespace layer1_foundations {
19namespace combinatorics {
20
21
23{
24 Enc = NULL;
25 Decomp = NULL;
26}
27
29{
30}
31
33 int max_depth,
34 int verbose_level)
35{
36 int f_v = (verbose_level >= 1);
37
38 if (f_v) {
39 cout << "tdo_scheme_compute::init" << endl;
40 }
41
43
45
46 if (f_v) {
47 cout << "tdo_scheme_compute::init before Decomp->init_incidence_matrix" << endl;
48 }
49
52 verbose_level);
53
54 if (f_v) {
55 cout << "tdo_scheme_compute::init after Decomp->init_incidence_matrix" << endl;
56 }
57
58
59 if (f_v) {
60 cout << "tdo_scheme_compute::init before Decomp->setup_default_partition" << endl;
61 }
62 Decomp->setup_default_partition(verbose_level);
63 if (f_v) {
64 cout << "tdo_scheme_compute::init after Decomp->setup_default_partition" << endl;
65 }
66
67
68 if (f_v) {
69 cout << "tdo_scheme_compute::init before Decomp->compute_TDO" << endl;
70 }
71
72 Decomp->compute_TDO(max_depth, verbose_level);
73
74 if (f_v) {
75 cout << "tdo_scheme_compute::init after Decomp->compute_TDO" << endl;
76 }
77
78 if (f_v) {
79 cout << "tdo_scheme_compute::init before Decomp->get_row_scheme" << endl;
80 }
81 Decomp->get_row_scheme(verbose_level);
82 if (f_v) {
83 cout << "tdo_scheme_compute::init after Decomp->get_row_scheme" << endl;
84 }
85
86 if (f_v) {
87 cout << "tdo_scheme_compute::init before Decomp->get_col_scheme" << endl;
88 }
89 Decomp->get_col_scheme(verbose_level);
90 if (f_v) {
91 cout << "tdo_scheme_compute::init after Decomp->get_col_scheme" << endl;
92 }
93
94 if (f_v) {
95 cout << "tdo_scheme_compute::init done" << endl;
96 }
97}
98
99void tdo_scheme_compute::print_schemes(std::ostream &ost)
100{
101 int verbose_level = 0;
102 int f_enter_math = FALSE;
103 int f_print_subscripts = TRUE;
104
105 ost << "$$" << endl;
107 ost,
108 f_enter_math, f_print_subscripts,
109 verbose_level);
110 ost << "$$" << endl;
111 ost << "$$" << endl;
113 ost,
114 f_enter_math, f_print_subscripts,
115 verbose_level);
116 ost << "$$" << endl;
117
118
119}
120
121
122}}}
123
encoding of combinatorial object for use with nauty
void init(encoded_combinatorial_object *Enc, int max_depth, int verbose_level)
decomposition of an incidence matrix
Definition: geometry.h:400
void print_row_decomposition_tex(std::ostream &ost, int f_enter_math, int f_print_subscripts, int verbose_level)
void compute_TDO(int max_depth, int verbose_level)
void init_incidence_matrix(int m, int n, int *M, int verbose_level)
void print_column_decomposition_tex(std::ostream &ost, int f_enter_math, int f_print_subscripts, int verbose_level)
#define NEW_OBJECT(type)
Definition: foundations.h:638
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects