elementapply_byname function

Apply a function to an element of a matrix specified by rows and columns