I'm writing a system that allows python scripts to be executed within a C++ application.
The python scripts are used to modify values within arrays of data (typically 2048x2048x4 arrays of floats)
I'm currently using numpy arrays created using the array API and registered with Python.
In the python scripts I'm accessing the arrays like
for all x in range(0,Width):
for all y in range(0,Height)
Array[x][y][0] = blah
Array[x][y][1] = blah
Array[x][y][2] = blah
Array[x][y][3] = blah
This seems to be pretty slow. Is there a quicker way to set this up?