fractionize_byname function

Compute fractions of matrix entries