Skip to content

Row Major Arrays #84

@tknopp

Description

@tknopp

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

No one assigned

    Labels

    sparseSparse arraysspeculativeWhether the change will be implemented is speculativewon't changeIndicates that work won't continue on an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions