I'm using the following code to create a list of indices for an array. However, I would like the index to run in Fortran order i.e. the inner loop being the faster varying loop. Is there a way to achieve this in python. At the moment, the output I get is in C order.

```
np.transpose(np.nonzero(np.ones([32,30])))

```

Output:

```
array([[ 0,  0],
       [ 0,  1],
       [ 0,  2],
       ..., 
       [31, 27],
       [31, 28],
       [31, 29]])

```

However, I need the ouptut in the form:

```
array([[ 0,  0],
       [ 1,  0],
       [ 2,  0],
       ..., 
       [29, 29],
       [30, 29],
       [31, 29]])

```