Skip to content

Put the material mode index last - #18

Merged
davschneller merged 1 commit into
mainfrom
davschneller/ordering
Sep 26, 2026
Merged

davschneller merged 1 commit into
mainfrom
davschneller/ordering

Conversation

@davschneller

Copy link
Copy Markdown
Contributor

The multilinear forms yield the material basis as the leading axis of kDivM, kDivMT, rDivM and V3mTo2nTWDivM. yateto assigns stride one to the leading index and aligns it to the vector width, which would give the material mode index the smallest stride and pad it to the vector width. The fused simulation index is the one that wants that end, so move the material mode index to the trailing, slowest varying axis instead.

Adds tests asserting that a material order of one reproduces the matrices for constant material for all four families, and that the material index ends up last.

AI-generated. Model: Claude Opus 5

The multilinear forms yield the material basis as the leading axis of
kDivM, kDivMT, rDivM and V3mTo2nTWDivM. yateto assigns stride one to the
leading index and aligns it to the vector width, which would give the
material mode index the smallest stride and pad it to the vector width.
The fused simulation index is the one that wants that end, so move the
material mode index to the trailing, slowest varying axis instead.

Adds tests asserting that a material order of one reproduces the
matrices for constant material for all four families, and that the
material index ends up last.

AI-generated. Model: Claude Opus 5
@davschneller
davschneller merged commit ec6337f into main Sep 26, 2026
1 check failed
@davschneller
davschneller deleted the davschneller/ordering branch September 26, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant