File output reduced
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -115,8 +115,8 @@ vector<MyFunction> get_function_class(MyFunction f, const vector< MyMatrix >& tr
|
|||||||
);
|
);
|
||||||
bool is_inserted = transformed_res.insert(linear_transformed).second;
|
bool is_inserted = transformed_res.insert(linear_transformed).second;
|
||||||
if ( is_inserted ) {
|
if ( is_inserted ) {
|
||||||
out << linear_transformed.string() << " = " << f.string() << " with ("
|
// out << linear_transformed.string() << " = " << f.string() << " with ("
|
||||||
<< transformation.string(",") << ")" << endl;
|
// << transformation.string(",") << ")" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -234,13 +234,10 @@ void fill_ranks(vector<MyFunction> monomials) {
|
|||||||
vector<MyFunction> function_class = get_function_class(
|
vector<MyFunction> function_class = get_function_class(
|
||||||
current_fn, possible_tranformations, f_out
|
current_fn, possible_tranformations, f_out
|
||||||
);
|
);
|
||||||
cout << "size of function class is " << function_class.size() << endl;
|
f_out << "size of function class " << current_fn.string() << " is " << function_class.size() << endl;
|
||||||
f_out << "Function class for " << current_fn.string() << ": (" << endl;
|
|
||||||
for (auto marked_function: function_class) {
|
for (auto marked_function: function_class) {
|
||||||
used_map[marked_function.value()] = 0;
|
used_map[marked_function.value()] = 0;
|
||||||
f_out << " " << marked_function.string() << endl;
|
|
||||||
}
|
}
|
||||||
f_out << ")" << endl;
|
|
||||||
ranks.at(cur_rank - 1).push_back(current_fn);
|
ranks.at(cur_rank - 1).push_back(current_fn);
|
||||||
}
|
}
|
||||||
cout << "total unique functions: " << total_functions << endl;
|
cout << "total unique functions: " << total_functions << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user