I have a 1x1x3
matrix A
, and a 2-element array s= [m, n]
i need m-by-n
tiling of copies of A
. so expected output is mxnx3 matrix
.
Help me to find the correct function for the desired output.
I have a 1x1x3
matrix A
, and a 2-element array s= [m, n]
i need m-by-n
tiling of copies of A
. so expected output is mxnx3 matrix
.
Help me to find the correct function for the desired output.
let the 1x1x3 matrix
A =numpy.array([[[0, 0, 0]]])
and m= 3
and n= 3
then to get the mxnx3
matrix using tile
>>> a=tile((numpy.array([[[0, 0, 0]]])),(3,3,1))
>>> resol_val1 = a.shape
>>> resol_val1
(3, 3, 3)
>>> a
array([[[0, 0, 0],
[0, 0, 0],
[0, 0, 0]],
[[0, 0, 0],
[0, 0, 0],
[0, 0, 0]],
[[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]])