18namespace layer1_foundations {
47 std::vector<long int> &Points,
int verbose_level)
49 int f_v = (verbose_level >= 1);
52 cout <<
"points_and_lines::init" << endl;
57 vector<long int> The_Lines;
60 cout <<
"points_and_lines::init The surface "
61 "has " << Points.size() <<
" points" << endl;
67 for (i = 0; i <
nb_pts; i++) {
73 cout <<
"points_and_lines::init before "
74 "P->find_lines_which_are_contained" << endl;
78 cout <<
"points_and_lines::init after "
79 "P->find_lines_which_are_contained" << endl;
83 cout <<
"points_and_lines::init The surface "
84 "has " << The_Lines.size() <<
" lines" << endl;
91 Lines[i] = The_Lines[i];
95 cout <<
"points_and_lines::init nb_pts=" <<
nb_pts <<
" nb_lines=" <<
nb_lines << endl;
103 cout <<
"points_and_lines::init done" << endl;
130 ost <<
"The surface has " <<
nb_pts <<
" points:\\\\" << endl;
137 ost <<
"The points on the surface are:\\\\" << endl;
138 ost <<
"\\begin{multicols}{3}" << endl;
139 ost <<
"\\noindent" << endl;
143 for (i = 0; i <
nb_pts; i++) {
145 ost << i <<
" : $P_{" <<
Pts[i] <<
"}=";
147 ost <<
"$\\\\" << endl;
149 ost <<
"\\end{multicols}" << endl;
151 ost <<
"\\\\" << endl;
154 ost <<
"Too many to print.\\\\" << endl;
160 ost <<
"\\subsection*{The " <<
nb_lines <<
" Lines}" << endl;
172 ost <<
"The lines and their Pluecker coordinates are:\\\\" << endl;
178 ost <<
"\\ell_{" << i <<
"}";
182 ost <<
" = " << Schlaefli->Line_label_tex[i];
185 ost <<
" = " << endl;
191 ost <<
"_{" <<
Lines[i] <<
"}" << endl;
193 ost <<
"\\left[" << endl;
195 ost <<
"\\right]_{" <<
Lines[i] <<
"}" << endl;
203 ost <<
"={\\rm\\bf Pl}(" << v6[0] <<
"," << v6[1] <<
","
204 << v6[2] <<
"," << v6[3] <<
"," << v6[4]
205 <<
"," << v6[5] <<
" ";
206 ost <<
")_{" << Rk[i] <<
"}";
209 ost <<
"Rank of lines: ";
211 ost <<
"\\\\" << endl;
212 ost <<
"Rank of points on Klein quadric: ";
214 ost <<
"\\\\" << endl;
222 int f_v = (verbose_level >= 1);
225 cout <<
"points_and_lines::write_points_to_txt_file" << endl;
229 fname.append(
"_points.txt");
237 for (i = 0; i <
nb_pts; i++) {
238 ost <<
" " <<
Pts[i];
243 cout <<
"Written file " << fname <<
" of size " << Fio.
file_size(fname) << endl;
246 cout <<
"points_and_lines::write_points_to_txt_file done" << endl;
orthogonal_geometry::orthogonal_indexing * Orthogonal_indexing
void unrank_lint(long int rk, int verbose_level)
void latex_matrix(std::ostream &ost, int *p)
long int rank_point(int *v)
void unrank_point(int *v, long int rk)
void init(projective_space *P, std::vector< long int > &Points, int verbose_level)
void print_all_points(std::ostream &ost)
void print_all_lines(std::ostream &ost)
void print_lines_tex(std::ostream &ost)
void write_points_to_txt_file(std::string &label, int verbose_level)
projective space PG(n,q) of dimension n over Fq
void Pluecker_coordinates(int line_rk, int *v6, int verbose_level)
field_theory::finite_field * F
long int rank_point(int *v)
void find_lines_which_are_contained(std::vector< long int > &Points, std::vector< long int > &Lines, int verbose_level)
void unrank_point(int *v, long int rk)
a collection of functions related to file io
long int file_size(std::string &fname)
interface to create latex output files
void print_integer_matrix_tex(std::ostream &ost, int *p, int m, int n)
long int Qplus_rank(int *v, int stride, int k, int verbose_level)
#define Int_vec_print_fully(A, B, C)
#define Lint_vec_print(A, B, C)
#define Lint_vec_print_fully(A, B, C)
the orbiter library for the classification of combinatorial objects