[Haskell-cafe] Data.Vector.Unboxed

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed Nov 9 11:10:49 CET 2011


On 9 November 2011 20:56, kaffeepause73 <kaffeepause73 at yahoo.de> wrote:
> Hello,
>
> quick question about unboxed Vectors :
>
> Is it possible to create an unboxed vector of unboxed vector ? :
>
>> import qualified Data.Vector.Unboxed as V
>> type UnboxedNestedVextor =  V.Vector (V.Vector Int)

Only if you can define an Unbox instance for unboxed vectors (and I
don't know how feasible that is):
http://hackage.haskell.org/packages/archive/vector/0.9/doc/html/Data-Vector-Unboxed.html#t:Unbox

>
> Alternatively I would have to use:
>
>> import qualified Data.Vector.Unboxed as V
>> import qualified Data.Vector as VB
>
> type UnboxedNestedVextor =  VB.Vector (V.Vector Int)
>
> Is there a rule of thumb how much quicker Unboxed Vectors are ?
>
> Cheers Phil
>
>
> --
> View this message in context: http://haskell.1045720.n5.nabble.com/Data-Vector-Unboxed-tp4977289p4977289.html
> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list