Safe Haskell | Safe-Infered |
---|

- data V
- data family Array r sh e
- computeVectorS :: Fill r1 V sh e => Array r1 sh e -> Array V sh e
- computeVectorP :: (Fill r1 V sh e, Monad m) => Array r1 sh e -> m (Array V sh e)
- fromListVector :: Shape sh => sh -> [a] -> Array V sh a
- fromVector :: Shape sh => sh -> Vector e -> Array V sh e
- toVector :: Array V sh e -> Vector e

# Documentation

Arrays represented as boxed vectors.

This representation should only be used when your element type doesn't
have an `Unbox`

instsance. If it does, then use the Unboxed `U`

representation will be faster.

data family Array r sh e Source

Arrays with a representation tag, shape, and element type.
Use one of the type tags like `D`

, `U`

and so on for `r`

,
one of `DIM1`

, `DIM2`

... for `sh`

.

computeVectorS :: Fill r1 V sh e => Array r1 sh e -> Array V sh eSource

Sequential computation of array elements.

- This is an alias for
`compute`

with a more specific type.

computeVectorP :: (Fill r1 V sh e, Monad m) => Array r1 sh e -> m (Array V sh e)Source

Parallel computation of array elements.

fromListVector :: Shape sh => sh -> [a] -> Array V sh aSource

O(n). Convert a list to a boxed vector array.

- This is an alias for
`fromList`

with a more specific type.