Skip to content

Conversation

@durnwalder
Copy link
Contributor

This PR enhances Matrix with support for both C-contiguous (row-major) and F-contiguous (column-major) memory layouts across all matrix routines. Default memory layout remains C-contiguous to keep API close to NumPy. Matrix tests are performed for both memory layouts.

  • Add conditional compilation flag F_CONTIGUOUS to control matrix memory layout in tests
  • Modify GitHub workflow to run test suite with both layouts:
    • Additional test run for matrix tests with flag -D F_CONTIGUOUS
  • Matmul handles all memory layout combinations with specialized implementations.

Copy link
Collaborator

@forfudan forfudan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks you for the updates!

@MadAlex1997 MadAlex1997 merged commit fa83d40 into Mojo-Numerics-and-Algorithms-group:pre-0.7 Apr 21, 2025
2 checks passed
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.

3 participants