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

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

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

type Vec5 = Vec (S (S (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

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