I want to place the array B (without loops) on the array A with starting index A[0,0]
A=np.empty((3,3))
A[:] = np.nan
B=np.ones((2,2))
The result should be:
array([[ 1., 1., nan],
[ 1., 1., nan],
[ nan, nan, nan]])
I tried numpy.place(arr, mask, vals) and numpy.put(a, ind, v, mode='raise') but I have to find the mask or all indexes.
How to do that?