This code illustrates how simple it is to pass n-dimensional (or in this case 2D) numpy arrays from python to c++ vectors and back. Allowing computationally expensive code to be easily written in c++ ...
The following quickstart.py script creates a zero-initialised array and performs some element assignments: import mpi_array as mpia # creates zero-initialized PGAS (distributed) array dary = ...