PrimitiveArray-0.5.2.0: Efficient multidimensional arrays

Safe HaskellNone

Data.PrimitiveArray.Zero

Contents

Description

Primitive arrays where the lower index is zero (or the equivalent of zero for newtypes and enumerations).

Synopsis

Unboxed, multidimensional arrays.

data Unboxed sh e Source

Constructors

Unboxed !sh !(Vector e) 

Instances

(Shape sh, ExtShape sh, Unbox elm) => PrimArrayOps Unboxed sh elm 
(Shape sh, ExtShape sh, Unbox elm) => MPrimArrayOps Unboxed sh elm 
(Shape sh, ExtShape sh, Unbox e, Unbox e') => PrimArrayMap Unboxed sh e e' 
(Eq sh, Eq e, Unbox e) => Eq (Unboxed sh e) 
(Read sh, Read e, Unbox e) => Read (Unboxed sh e) 
(Show sh, Show e, Unbox e) => Show (Unboxed sh e) 

Boxed, multidimensional arrays.

data Boxed sh e Source

Constructors

Boxed !sh !(Vector e) 

Instances

(Shape sh, ExtShape sh, Unbox elm) => PrimArrayOps Boxed sh elm 
(Shape sh, ExtShape sh, Unbox elm) => MPrimArrayOps Boxed sh elm 
(Shape sh, ExtShape sh) => PrimArrayMap Boxed sh e e' 
(Eq sh, Eq e) => Eq (Boxed sh e) 
(Read sh, Read e) => Read (Boxed sh e) 
(Show sh, Show e) => Show (Boxed sh e)