I am trying to create a numpy array with type long (that is, Python's long, not numpy's long = int64).
If I do:
m = np.eye(6, dtype=long)
print(m.dtype)
This outputs int64; i.e., they are not Python longs.
Is there any way to create a numpy array with each element being of type long? Or is this some fixed-width versus non-fixed-width problem that numpy doesn't support? If so, is there any library (preferably with a nice C API like numpy's) that can do this?