julian-upc/discrete-geometry

c++ issues

Closed this issue · 4 comments

Let's talk about some details in your c++ code.

from GaleDiagram.cpp:

vector<int> Gale_Diagram::findMissing(int i, int j, int k, int l) const{
    vector<int> pointNums(points.size());
    for(int a=0; a<points.size(); a++) pointNums[a]=a;

Here you could use a std::index_sequence and have clearer code

That is indeed a clearer way to set it up. I hadn't heard of it before.

I opened a new pull request where I'll add comments. In the meantime, could you please upload your Makefile or whatever infrastructure you have for actually compiling the project?

I have igraph and gmpxx installed.