0

First, let's get your questions out of the way:
how could it interact with matrix t, after all the rules need to be researched in matrix t?
Right, this might be involved. I think it is easier to construct the result directly, rather than to modify a pre-made matrix.
how to insert the values...