fixed-vector-0.5.1.1: Generic vectors with statically known size.

Safe HaskellNone

Data.Vector.Fixed.Primitive

Contents

Description

Unboxed vectors with fixed length. Vectors from Data.Vector.Fixed.Unboxed provide more flexibility at no performeance cost.

Synopsis

Immutable

data Vec n a Source

Unboxed vector with fixed length

Instances

Typeable2 Vec 
(Arity n, Prim a) => VectorN Vec n a 
(Arity n, Prim a) => Vector (Vec n) a 
(Arity n, Prim a) => IVector (Vec n) a 
(Arity n, Prim a, Eq a) => Eq (Vec n a) 
(Arity n, Prim a, Ord a) => Ord (Vec n a) 
(Arity n, Prim a, Show a) => Show (Vec n a) 

type Vec2 = Vec (S (S Z))Source

type Vec3 = Vec (S (S (S Z)))Source

type Vec4 = Vec (S (S (S (S Z))))Source

type Vec5 = Vec (S (S (S (S (S Z)))))Source

Mutable

data MVec n s a Source

Mutable unboxed vector with fixed length

Instances

Typeable3 MVec 
(Arity n, Prim a) => MVector (MVec n) a 

Type classes

class Prim a

Class of types supporting primitive array operations