Computes the Amari distance between two matrices W and A. It cancels when WA is a permutation and scale matrix.
Input matrix
The Amari distance