This is just me reading through "Programming massively parallel processors" and jotting the functions + exercise answers down.