50 | | This feature is needed to run Modelica models written with matrix formulations, where the matrix parameters are mostly filled in with zeros. In this case, it is absolutely necessary to evaluate the matrix-vector products, as shown in the above example, otherwise the generate code may contain a ludicrous number of useless terms, that should be removed up front since {{{0*x = 0}}} no matter what the value of {{{x}}} is. |
| 50 | This feature is needed to run Modelica models written with matrix/tensor formulations, where the matrix parameters are mostly filled in with zeros. In this case, it is absolutely necessary to evaluate the matrix-vector products, as shown in the above example, otherwise the generate code may contain a ludicrous number of useless terms, that should be removed up front since {{{0*x = 0}}} no matter what the value of {{{x}}} is. |