Question: In python using numpy and for loops. How would I insert a multidimensional array into another multidimensional array, multiple times. For example if I defined
In python using numpy and for loops. How would I insert a multidimensional array into another multidimensional array, multiple times. For example if I defined A = [[1,2],[3,4]] and B as a four by four matrix of zeros, How would I insert A into B such that when I print B I get, [[1,2,1,2],[3,4,3,4],[1,2,1,2],[3,4,3,4]]
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
