Properly format a vector of weights for matrix multiplication
format_weights_row.Rd
Wrapper around the diag() function. This function was created because diag() applied to a scalar doesn't spit that scalar back out, but instead returns identity matrix of dimension (scalar * scalar).