a = np.array([[1,2], [3,4]]) np.zeros_like(a) # [[0, 0], [0, 0]]
numpy.zeros_like()
Creator
Creator
Seonglae ChoCreated
Created
2023 Apr 13 9:23Editor
Editor
Seonglae ChoEdited
Edited
2026 Jan 28 23:43Refs
Refs
Seonglae Cho
Seonglae Choa = np.array([[1,2], [3,4]]) np.zeros_like(a) # [[0, 0], [0, 0]]