Template:Matrix with row input