I'll be quick and straight-forward; I created a python 3 script that takes a 6x6 table, populated with [1,10] values, and a 1x6 table, also populated with [1,10] values and then either adds or multiplies their values a new 6x6 table, based on two models.
What I want to do is translate that into a mathematical model, which I have, but I don't know if I meet the right conditions because it has been 3 years since I last used models to express a process.
$$MIO=\left[ \begin{array}{ccc}x_{1,1} & \cdots & x_{1,6} \\ \vdots & \ddots & \vdots \\ x_{6,1} & \cdots & x_{6,6} \end{array}\right]$$
$$factor=\left[f_1\cdots f_6\right]$$
$$D_{factor}=[1,10]$$
$$D_{MIO}=[1,10]$$
$${Model1= M I O +factor}$$
$${Model1= M I O *factor}$$
So here is where you come in; do you think what I did is correct, because at this point I don't know if the right conditions are met to calculate the new table or if I should calculate the values by themselves and then populate a new table with the values
P.S I know that you are going to ask whether I'm using matrix tables, so before you ask I used dataframes which I believe are not actually matrices but vectors. So if I'm wrong on that as well, feel free to correct me.