Apr-09-2019, 12:28 PM
So, you have two matrices of shape
Thats easy:
nxm
and want to concatenate them by third axis and get one matrix of shape nxmx2
.Thats easy:
import numpy as np A = np.random.rand(10, 20) B = np.random.rand(10, 20) C = np.dstack([A, B]) print(C.shape)