I have a matrix
a = [[11 12 13 14 15]
[21 22 23 24 25]
[31 32 33 34 35]
[41 42 43 44 45]
[51 52 53 54 55]]
I would sample it in such a way
b = a[::2,::3]
b >> [[11 14]
[31 34]
[51 54]]
Now only using b (assume 'a' never existed, I just know the shape) how do I get the following output
x = [[11 0 0 14 0]
[0 0 0 0 0]
[31 0 0 34 0]
[0 0 0 0 0]
[51 0 0 54 0]]