create_matrix_byname function

Create a "byname" matrix from a vector