numpy.dstack

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Apr 13 18:28
Editor
Edited
Edited
2026 Jan 28 23:51
Refs
Refs
depth(axis=2)
a = np.array([[1,2], [3,4]]) b = np.array([[5,6], [7,8]]) np.dstack((a, b)) # (2,2) + (2,2) → (2,2,2) # [[[1,5], [2,6]], # [[3,7], [4,8]]]
 
 
 
 
 
 
 
 
 

Recommendations