setrowtype function

Sets row type for a matrix or a list of matrices