I want to add every columns of a matrix to a numpy array, but numpy.broadcast
only allows to add every rows of a matrix to an array. How can I do this?
My idea is to first transpose the matrix then add it to the array then transpose back, but this uses two transposes. Is there a function to do it directly?