i_value function

Internal constructor for value matrix