repa- High performance, regular, shape polymorphic parallel arrays.




arbitraryShape :: (Shape sh, Arbitrary sh) => Gen (sh :. Int)Source

Generate an aribrary shape that does not have 0's for any component.

arbitrarySmallShape :: (Shape sh, Arbitrary sh) => Int -> Gen (sh :. Int)Source

Generate an arbitrary shape where each dimension is more than zero, but less than a specific value.

arbitrarySmallArray :: (Shape sh, Elt a, Arbitrary sh, Arbitrary a) => Int -> Gen (Array (sh :. Int) a)Source

Create an arbitrary small array, restricting the size of each of the dimensions to some value.