function to concatenate a matrix into a vector by row

byRow(mat)

Arguments

mat