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

Factories to accept parameter 'order' #403

Closed
ClaudiaComito opened this issue Oct 28, 2019 · 0 comments
Closed

Factories to accept parameter 'order' #403

ClaudiaComito opened this issue Oct 28, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ClaudiaComito
Copy link
Contributor

ClaudiaComito commented Oct 28, 2019

Related
Issue #372. The user should be able to specify whether the memory layout of a tensor should be row-major (C) or column-major (Fortran).

Feature functionality
Same as in numpy, factories should accept a parameter order = 'C' (default, row-major layout) or order = 'F' (column-major layout).

Additional context
Internal memory layout of an ndarray

Beware of misleading terminology when ndim>2:

  • row-major puts ndim[0] in contiguous order, column-major puts ndim[-1] in contiguous order. When ndim=2, ndim[0] = rows, ndim[-1] = columns.

Cf. Memory layout of multi-dimensional arrays

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant