I have two $\mathbb{C}$ matrices $A$ and $B$. Matrix $A$ is $M \times N$. Matrix $B$ is $M \times R$. For each column in $B$, I want to find the column in $A$ that is most similar, i.e. minimize the difference. I have thought of two ways to go about this, but I am not sure which is going to give the better solution (if either will).
First, I could calculate the norm of the difference between each pair of column vectors. Second, I could take the inner product of the two matrices and find the maximum value in each column of the resulting matrix.
Do either of these work? Is one of them more accurate than the other?