You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless I'm understanding the question incorrectly here (but the np.pad solution is doing what I first expected), the fancy indexing solution does not work.
The text was updated successfully, but these errors were encountered:
The first solution extends the array (final shape is (5,5)) while the second solution does not. Maybe it's worth to add a comment saying external/internal border to distinguish between the two solutions.
An example:
Unless I'm understanding the question incorrectly here (but the
np.pad
solution is doing what I first expected), the fancy indexing solution does not work.The text was updated successfully, but these errors were encountered: