repa-array-4.0.0.2: Bulk array representations and operators.

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Repa.Array.Linear

Synopsis

Documentation

data L Source

A linear layout with the elements indexed by integers.

  • Indexing is not bounds checked. Indexing outside the extent yields the corresponding index.

Constructors

Linear 

Fields

linearLength :: Int
 

Instances

Eq L 
Show L 
Layout L

Linear layout.

Bulk L Int

Linear arrays.

Eq (Name L) 
Show (Name L) 
data Name L = L 
type Index L = Int 
data Array L Int = LArray Int 

linear :: Int -> Array L Int Source

Construct a linear array that produces the corresponding index for every element.

> toList $ linear 10
   [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]