This makes it compile, but I doubt it will do what you expect because of my earlier comment:
tpsout = multimap2d(4000, 50, rpmaxis, tpsaxis, (int *) tpso);
This makes it compile, but I doubt it will do what you expect because of my earlier comment:
tpsout = multimap2d(4000, 50, rpmaxis, tpsaxis, (int *) tpso);