作者:mqfcu123 | 来源:互联网 | 2023-05-17 09:54
I have a very basic question regarding to arrays in numpy, but I cannot find a fast way to do it. I have three 2D arrays A,B,C with the same dimensions. I want to convert these in one 3D array (D) where each element is an array
我对numpy中的数组有一个非常基本的问题,但我找不到快速的方法来做到这一点。我有三个具有相同尺寸的2D阵列A,B,C。我想在一个3D数组(D)中转换它们,其中每个元素都是一个数组
D[column][row] = [A[column][row] B[column][row] c[column][row]]
What is the best way to do it?
最好的方法是什么?
2 个解决方案