is a bit of a "hack" around pressureless/linear_algebra#74 . In the source, each X_i is vector of length n_i. This translation is defining X as a matrix with m columns and then adjusting the summation in the expression to only run over n_i elements (assuming that the n_i entries of X_i are stored in the first n_i entries of that row and that m ≥ max_i n_i.
This feels like bending over backwards to get around a limitation of I❤️LA. Hopefully we fix pressureless/linear_algebra#74 and this can be written more clearly, e.g., as:
Create by @alecjacobson :
The current I❤️LA translation
is a bit of a "hack" around pressureless/linear_algebra#74 . In the source, each X_i is vector of length n_i. This translation is defining X as a matrix with m columns and then adjusting the summation in the expression to only run over n_i elements (assuming that the n_i entries of X_i are stored in the first n_i entries of that row and that m ≥ max_i n_i.
This feels like bending over backwards to get around a limitation of I❤️LA. Hopefully we fix pressureless/linear_algebra#74 and this can be written more clearly, e.g., as: