I'm trying to substract a 1 x M matrix from a N x M matrix.
lets say my 1 x M matrix is [1 2]
and my N x M matrix is [3 4; 5 4; 1 6]
and what I want as a result is [2 2; 4 2; 0 4]
I know how to do this with a for loop etc, what I'm trying to figure out is is there a math way of doing this in a single line?
Thanks.