Data.Ix missing info on row/column major indexing
|Reported by:||mirpa||Owned by:|
|Keywords:||row, column, major, Ix||Cc:|
|Type of failure:||Documentation bug||Difficulty:||Easy (less than 1 hour)|
|Test Case:||Blocked By:|
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.