Working with vectors it’s nice to have a quick way to print the values contained. Something like: Unfortunately this doesn’t work out of the box with C++… we first need to overload the << operator for vector. Now the code in the first block works fine, but only for vectors of int. Wouldn’t it be […]
C++
Interfacing Python/numpy from C++ (Part 1/3)
Sometimes there is a need to interface Python and numpy from C++. Maybe your Python code is too slow for a specific application or you have an old C++ library that you want to run on your data. In this three part series we will look at how to go from Python to C++ and […]