fixed-vector-0.1: Generic vectors with fixed length

Safe HaskellNone

Data.Vector.Fixed.Unboxed

Contents

Description

Unboxed vectors with fixed length.

Synopsis

Immutable

data family Vec n a Source

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

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

Mutable

data family MVec n s a Source

Type classes

class (IVector (Vec n) a, MVector (MVec n) a) => Unbox n a Source

Instances

(IVector (Vec n) Double, MVector (MVec n) Double, Arity n) => Unbox n Double 
(IVector (Vec n) Float, MVector (MVec n) Float, Arity n) => Unbox n Float 
(IVector (Vec n) Char, MVector (MVec n) Char, Arity n) => Unbox n Char 
(IVector (Vec n) Word64, MVector (MVec n) Word64, Arity n) => Unbox n Word64 
(IVector (Vec n) Word32, MVector (MVec n) Word32, Arity n) => Unbox n Word32 
(IVector (Vec n) Word16, MVector (MVec n) Word16, Arity n) => Unbox n Word16 
(IVector (Vec n) Word8, MVector (MVec n) Word8, Arity n) => Unbox n Word8 
(IVector (Vec n) Word, MVector (MVec n) Word, Arity n) => Unbox n Word 
(IVector (Vec n) Int64, MVector (MVec n) Int64, Arity n) => Unbox n Int64 
(IVector (Vec n) Int32, MVector (MVec n) Int32, Arity n) => Unbox n Int32 
(IVector (Vec n) Int16, MVector (MVec n) Int16, Arity n) => Unbox n Int16 
(IVector (Vec n) Int8, MVector (MVec n) Int8, Arity n) => Unbox n Int8 
(IVector (Vec n) Int, MVector (MVec n) Int, Arity n) => Unbox n Int 
(IVector (Vec n) Bool, MVector (MVec n) Bool, Arity n) => Unbox n Bool 
(IVector (Vec n) (), MVector (MVec n) (), Arity n) => Unbox n () 
(IVector (Vec n) (Complex a), MVector (MVec n) (Complex a), Unbox n a) => Unbox n (Complex a) 
(IVector (Vec n) (a, b), MVector (MVec n) (a, b), Unbox n a, Unbox n b) => Unbox n (a, b) 
(IVector (Vec n) (a, b, c), MVector (MVec n) (a, b, c), Unbox n a, Unbox n b, Unbox n c) => Unbox n (a, b, c)