Just wondering if there's a function that can produce an nxn array where the centre has the maximum value, and the edges have a value of 0 like so:
0 0 0 0 0 0 0
0 1 1 1 1 1 0
0 1 2 2 2 1 0
0 1 2 3 2 1 0
0 1 2 2 2 1 0
0 1 1 1 1 1 0
0 0 0 0 0 0 0
Would be nice if there was something similar to np.arange where I can just insert n and get an array like the one above, but I'm not too hopeful.