Perhaps the answer lies in using thenumpy.matrixclass? Numpy.matrix There is a subclass of NumPy array callednumpy.matrix. This operates similarly to matrices we know from the mathematical world. If you create somenumpy.matrixinstances and call*, you will perform matrix multiplication ...