-
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
sparseSparse arraysSparse arraysspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculativewon't changeIndicates that work won't continue on an issue or pull requestIndicates that work won't continue on an issue or pull request
Description
I have already asked this on julia-users (https://groups.google.com/forum/?fromgroups=#!searchin/julia-users/Row$20Major/julia-users/FUU7C6Pvx3Q/Q6iUkUQM8xAJ) but maybe Github is the better place for this.
There are situations where row-major arrays are more suitable. In particular I am thinking about Kaczmarz algorithm which operates on matrix rows and this is simply more efficient on row-major arrays.
Solutions:
- Keep the reversed indices in mind when writing the algorithm. IMHO a hacky solution.
- Write some array view type which reverses indexing (i.e. the lazy transpose type)
- Let the standard array have different storage orders. This is how Numpy does it.
I know that this is core stuff of Julia and understand any objections in changing things here. Still, Julia seems to be not that flexible in this regards as Numpy and it would be great if we could get a clean solution for this.
Metadata
Metadata
Assignees
Labels
sparseSparse arraysSparse arraysspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculativewon't changeIndicates that work won't continue on an issue or pull requestIndicates that work won't continue on an issue or pull request