Skip to content

Data.Ix missing info on row/column major indexing

I've tried to use Data.Ix with Data.Vector for image manipulations and I confused column with row-major indexing.

I expected than Data.Ix.index ((0,0),(3,3)) (1,0) == 1 while it is actually equal to 4.

Documentation for Data.Ix should explicitly state that it is row-major indexing and function Data.Ix.index might be accompanied by example like: index ((0,0),(3,3)) (1,0) == 4 which should be obvious.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information