Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added both row-major and column-major representations in documentation. #143

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

scemama
Copy link
Member

@scemama scemama commented Mar 20, 2024

This should prevent having issues such as #127 and #142.

@scemama scemama requested a review from q-posev March 20, 2024 13:54
@q-posev
Copy link
Member

q-posev commented Mar 22, 2024

@scemama thanks, indeed, that would make things clear!

Should we mention that all languages (C, Python, Rust) except Fortran (not sure about Julia though) are row-major?

@scemama
Copy link
Member Author

scemama commented Mar 22, 2024

I would prefer not. For example, OCaml has both row- or column-major possibilites with Bigarrays. Same for Numpy in Python: with an option you can change to column major. Also, if you use BLAS in C, as BLAS is written in Fortran it stays column-major. But if you use CBlas, it is row-major. So I would not make a generality and let the users check what ordering they should use.

@scemama scemama merged commit bdc2031 into master Mar 22, 2024
3 checks passed
@q-posev q-posev deleted the row-major branch March 22, 2024 16:35
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.

2 participants