logMatrix function

Log-warp matrix