4 ms·
A short C++ example of gecode in use on their home page would be real nice.
by ur-whale 1y ago
A short C++ example of gecode in use on their home page would be real nice.
- wavemode 1y agothere are examples in the repo: https://github.com/Gecode/gecode/tree/master/examples https://github.com/Gecode/gecode/tree/master/examples
- ur-whale 1y agoThanks for pointing those out, I did in fact find them because my interest level was high enough that I went digging in the github repo. But as I explain above, a key thing for tech. things like this, which are interesting in an of themselves, is to hook the casual passer-by by very quickly showing him/her what it is about. For this, you want a very short example front and center on your homepage to get people with little time to see what the stuff can actually do.
- mzl 1y agoAdding to wavemode, the Sudoku example is a good starting point: https://github.com/Gecode/gecode/blob/master/examples/sudoku.cpp https://github.com/Gecode/gecode/blob/master/examples/sudoku... In the documentation (https://www.gecode.org/doc-latest/MPG.pdf https://www.gecode.org/doc-latest/MPG.pdf) there are a lot of worked examples as well.
- ur-whale 1y agoYes, I found those. The point is to make the example front and center on the homepage so as to very quickly show what this is about to the casual passer-by.
- CamperBob2 1y agofor (int i=0; i<nn; i++) { distinct(*this, m.row(i), opt.ipl()); distinct(*this, m.col(i), opt.ipl()); } Weird way to use C++, passing *this to everything explicitly, but maybe they have a reason.
- nurettin 1y agoQt does this as well. It is a common way of preserving a parent-child relationship.
- CamperBob2 1y agoHow does it do that?