I've got a matrix of values, and I want a vector with the positions of the matrix and the value. 

First idea: double-bucle and store index and value

Second idea: Create a ndarray whit a sequence

Any other idea most efficient?

Sorry for my english. 

Input (image 1C):

```
[[0 1 2 3 4 5]
 [6 7 8 9 10 11]]

```

Output:

```
[[0 0 1][0 1 2] [0 2 3] [0 3 4] [0 4 5] [1 0 6] [1 1 7] [1 2 8] [1 3 9] [1 4 10] [1 5 11] ... ]

```

Thank you all for your answers, you have helped to solve the problem and understand numpy.