How to compute 2-norm between two matrices of different sizes?

324 Views Asked by At

I have a matrix $A$ of size $n\times8$ and matrix B of size $m\times8$. I need to compute $2$-norm to measure similarity.

It can be measured as: $d(A,B)= \frac{||A-B||_{2}}{||A||_{2} ||B||_{2}}$