Opened 13 years ago

Closed 12 years ago

#31 closed defect (fixed)

Empty array equals non-empty array

Reported by: Ben Lippmeier Owned by:
Priority: blocker Milestone: 3.0.0
Component: library Version:
Keywords: Cc:


Issac Trotts <issac@…> reports: empty array equals non-empty array

Prelude Data.Array.Repa> import Data.Array.Repa as R
Prelude Data.Array.Repa> let x :: Array DIM1 Int; x = fromList (Z :. (0::Int)) []
Prelude Data.Array.Repa> let y :: Array DIM1 Int; y = fromList (Z :. (1::Int)) [1]
Prelude Data.Array.Repa> x == y
Prelude Data.Array.Repa> y == x
*** Exception: Data.Array.Repa.Operators.IndexSpace.reshape: reshaped array will not match size of the original

Make sure this works in Repa3.

Change History (2)

comment:1 Changed 13 years ago by Ben Lippmeier

Priority: normalblocker

comment:2 Changed 12 years ago by Ben Lippmeier

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.