How can I generate matrix combination based on provided matrices of 0 and 1 in python?

后端 未结 0 396
别跟我提以往
别跟我提以往 2021-01-05 15:49

I am having 3x3 matrix of 0 and 2x2 matrix of 1:

a=np.zeros((3,3),dtype=int)

b=np.ones((2,2),dtype=int)
array([[0, 0, 0],
       [0,         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题