I wont create a matrix of matrix with numpy.array, this matrix only need two elements, the comand is:
numpy.array([m1,m2])
this work fine indpendently of the matrices size, except when a matrix have a dimension in one. Example:
m1 = numpy.ones((2,2))
m2 = numpy.ones((2,1))
numpy.array([m1,m2])
In this case show error... and the shape for the matrices are (2,2) and (2,1) but for some reason i think that the dimension 1 is the problem. Someone know as fix this problem. Thanks!
np.arraythrows an error. Maybe you shouldn't be creating such an array!np.array? Remember, an object dtype array is little better than a list, and in some ways, worse.np.array([m1,m2])is an unreliable way of making a (2,) shape object dtype array. BetterM=np.empty(2, object)andM[0]=m1andM[1]=m2(or some variation on that).