AEq instance for matrices.