[QST]How to understand composition?
What is your question?
I am confused about the content of this article. Link
when to mod ?when to div?
and what's the meaning of dth?
Mathematically, a Layout is a fucntion mapping from integer to integer (1d logical index to 1d logical index). A Layout is a tuple of Shape and Stride. The Shape is in responsible for "unflatting" the 1d logical index into a n-d logical coordinate (div and mod). And the Stride is in responsible for inner product with n-d logical coordinate to get back to the 1d logical index.
Since the a Layout is a fucntion mapping from integer to integer, they can easily compose. For example, Layout A and B. A(B(i)), B(i) always returns an integer, so the function A can take it as input, aka, function compose.
For mod and div with Layouts, I don't think they are significant to the user.
you don't answer my question
This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.
This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.