fixed-vector-0.1.2: Generic vectors with fixed length

Safe HaskellNone

Data.Vector.Fixed.Boxed

Contents

Description

Boxed vector.

Synopsis

Immutable

data Vec n a Source

Unboxed vector with fixed length

Instances

(Vector (Vec n) a, ~ * (Dim (Vec n)) n, Arity n) => VectorN Vec n a 
(Arity (Dim (Vec n)), Arity n) => Vector (Vec n) a 
(~ * (Dim (Vec n)) (DimM (Mutable (Vec n))), MVector (Mutable (Vec n)) a, Arity n) => IVector (Vec n) a 
(Arity n, Show a) => Show (Vec n a) 

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

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

Mutable

data MVec n s a Source

Mutable unboxed vector with fixed length

Instances

(Arity (DimM (MVec n)), Arity n) => MVector (MVec n) a