kvec_from_template_byname function

Create a constant vector from matrix a