PrimitiveArray-0.4.0.0: Efficient multidimensional arrays

Safe HaskellNone

Data.Array.Repa.Index

Contents

Description

Index types.

Synopsis

Index types

data Z Source

An index of dimension zero

Constructors

Z 

Instances

data tail :. head Source

Our index type, used for both shapes and indices.

Constructors

!tail :. !head 

Instances

(Eq tail, Eq head) => Eq (:. tail head) 
(Eq (:. tail head), Ord tail, Ord head) => Ord (:. tail head) 
(Read tail, Read head) => Read (:. tail head) 
(Show tail, Show head) => Show (:. tail head) 
(Eq (:. sh Int), Shape sh) => Shape (:. sh Int) 
(Eq (:. sh Int), Shape (:. sh Int), ExtShape sh) => ExtShape (:. sh Int) 

Common dimensions.

type DIM0 = ZSource

ix1 :: Int -> DIM1Source

Helper for index construction.

Use this instead of explicit constructors like (Z :. (x :: Int)). The this is sometimes needed to ensure that x is constrained to be in Int.

ix3 :: Int -> Int -> Int -> DIM3Source

ix4 :: Int -> Int -> Int -> Int -> DIM4Source

ix5 :: Int -> Int -> Int -> Int -> Int -> DIM5Source