Home > AI > Language > Python > Numpy >

np.ogrid

Example 1:

x, y = np.ogrid[:3, :4]
print(x, y)

'''
[[0]
 [1]
 [2]] [[0 1 2 3]]
'''
Related posts:

Leave a Reply