I have a 2-d array as below and I would like to know the indices of the non-negative numbers such as an index for 0 will be 1, the index for 1 will be 6 and the index for 8 will be 25. How can I do that?
x=[[0, -1, -1, -1, -1],
[1, 2, -1, -1, -1],
[-1, 3, 4, 5, -1],
[-1, -1, -1, 6, -1],
[-1, -1, -1, 7, 8]]