Miscellaneous code in C++.
They are just header files so place them alongside your code. The standard is C++11 so probably you need to specify -std=c++11
or greater when compiling.
Use doxygen
to generate the documentation in html format, or read it directly
inside the files.
Use make
to compile and run all the tests.
-
argsort.hpp
: implements something like Numpy'sargsort
. -
ConvexPolygon.hpp
: check if a polygon is convex and if a point is inside the polygon. Usestuple_iterator.hpp
. -
LinearFit.hpp
: provides an interface to linear least squares fitting. Requires Eigen. -
LinearInterp.hpp
: linear interpolator. Usesargsort.hpp
. -
NDIndex.hpp
: something like Numpy'sndindex
, iterates over all combinations of indices. -
tuple_iterator.hpp
: given an iterator of e.g.std::tuple
, iterates over a fixed component of the tuples.