darcs-mirrors/vector.git
9 years agoMake findIndices inplace-fusible
Roman Leshchinskiy [Fri, 11 Dec 2009 01:28:25 +0000 (01:28 +0000)] 
Make findIndices inplace-fusible

9 years agounsafeTake and unsafeDrop in Mutable
Roman Leshchinskiy [Fri, 11 Dec 2009 01:23:12 +0000 (01:23 +0000)] 
unsafeTake and unsafeDrop in Mutable

9 years agoAdd exchange
Roman Leshchinskiy [Fri, 11 Dec 2009 01:19:27 +0000 (01:19 +0000)] 
Add exchange

9 years agoSmall refactoring
Roman Leshchinskiy [Fri, 11 Dec 2009 00:35:56 +0000 (00:35 +0000)] 
Small refactoring

9 years agoAdd swap
Roman Leshchinskiy [Fri, 11 Dec 2009 00:35:03 +0000 (00:35 +0000)] 
Add swap

9 years agoRearrange code
Roman Leshchinskiy [Fri, 11 Dec 2009 00:28:14 +0000 (00:28 +0000)] 
Rearrange code

9 years agoRearrange code and add a couple of mutable operations
Roman Leshchinskiy [Thu, 10 Dec 2009 15:52:31 +0000 (15:52 +0000)] 
Rearrange code and add a couple of mutable operations

9 years agoRearrange code
Roman Leshchinskiy [Thu, 10 Dec 2009 15:43:10 +0000 (15:43 +0000)] 
Rearrange code

9 years agoAlways grow vectors by a factor of 2
Roman Leshchinskiy [Thu, 10 Dec 2009 15:37:53 +0000 (15:37 +0000)] 
Always grow vectors by a factor of 2

9 years agoBump version and fix author/copyright
Roman Leshchinskiy [Thu, 10 Dec 2009 12:15:35 +0000 (12:15 +0000)] 
Bump version and fix author/copyright

9 years agoUse unsafeTake and unsafeDrop in unstablePartition
Roman Leshchinskiy [Thu, 10 Dec 2009 12:11:05 +0000 (12:11 +0000)] 
Use unsafeTake and unsafeDrop in unstablePartition

9 years agoUse unsafeSlice in take and drop
Roman Leshchinskiy [Thu, 10 Dec 2009 12:09:22 +0000 (12:09 +0000)] 
Use unsafeSlice in take and drop

9 years agoTest more D.V.Unboxed variants
Roman Leshchinskiy [Thu, 10 Dec 2009 10:46:21 +0000 (10:46 +0000)] 
Test more D.V.Unboxed variants

9 years agoAdd comment
Roman Leshchinskiy [Thu, 10 Dec 2009 10:34:23 +0000 (10:34 +0000)] 
Add comment

9 years agoChange enlarge to eliminate a join point
Roman Leshchinskiy [Thu, 10 Dec 2009 10:34:08 +0000 (10:34 +0000)] 
Change enlarge to eliminate a join point

9 years agoUse unsafeSlice instead of slice in internal functions
Roman Leshchinskiy [Thu, 10 Dec 2009 10:33:47 +0000 (10:33 +0000)] 
Use unsafeSlice instead of slice in internal functions

9 years agoFix bad bug in D.V.Unboxed.basicUnsafeGrow
Roman Leshchinskiy [Thu, 10 Dec 2009 10:33:23 +0000 (10:33 +0000)] 
Fix bad bug in D.V.Unboxed.basicUnsafeGrow

9 years agoRearrange tests somewhat
Roman Leshchinskiy [Thu, 10 Dec 2009 06:55:57 +0000 (06:55 +0000)] 
Rearrange tests somewhat

9 years agoD.V.Unboxed tests
Roman Leshchinskiy [Thu, 10 Dec 2009 06:48:57 +0000 (06:48 +0000)] 
D.V.Unboxed tests

9 years agoDummy Show instance for D.V.Unboxed
Roman Leshchinskiy [Thu, 10 Dec 2009 06:46:44 +0000 (06:46 +0000)] 
Dummy Show instance for D.V.Unboxed

9 years agoTests of minIndex and maxIndex
Roman Leshchinskiy [Thu, 10 Dec 2009 06:31:49 +0000 (06:31 +0000)] 
Tests of minIndex and maxIndex

9 years agoAdd lots of tests for new functions
Roman Leshchinskiy [Thu, 10 Dec 2009 06:23:32 +0000 (06:23 +0000)] 
Add lots of tests for new functions

9 years agoFix signatures of right-to-left scans
Roman Leshchinskiy [Thu, 10 Dec 2009 06:21:44 +0000 (06:21 +0000)] 
Fix signatures of right-to-left scans

9 years agoFix bug in unstreamR
Roman Leshchinskiy [Thu, 10 Dec 2009 06:21:32 +0000 (06:21 +0000)] 
Fix bug in unstreamR

9 years agoAdapt to new vector interface
Roman Leshchinskiy [Thu, 10 Dec 2009 05:32:47 +0000 (05:32 +0000)] 
Adapt to new vector interface

9 years agoWork around 6.10.4 bug
Roman Leshchinskiy [Thu, 10 Dec 2009 05:16:31 +0000 (05:16 +0000)] 
Work around 6.10.4 bug

9 years agoUse basic* functions in default methods of MVector
Roman Leshchinskiy [Thu, 10 Dec 2009 05:15:21 +0000 (05:15 +0000)] 
Use basic* functions in default methods of MVector

9 years agoRight-to-left scans
Roman Leshchinskiy [Thu, 10 Dec 2009 04:41:51 +0000 (04:41 +0000)] 
Right-to-left scans

9 years agoRight-to-left streaming/unstreaming
Roman Leshchinskiy [Thu, 10 Dec 2009 04:41:41 +0000 (04:41 +0000)] 
Right-to-left streaming/unstreaming

9 years agoDelay inlining of size computations in enumFromTo
Roman Leshchinskiy [Thu, 10 Dec 2009 03:59:18 +0000 (03:59 +0000)] 
Delay inlining of size computations in enumFromTo

9 years agoUse more unsafe functions internally
Roman Leshchinskiy [Wed, 9 Dec 2009 23:41:14 +0000 (23:41 +0000)] 
Use more unsafe functions internally

9 years agoAdd unsafeBackpermute
Roman Leshchinskiy [Wed, 9 Dec 2009 14:34:24 +0000 (14:34 +0000)] 
Add unsafeBackpermute

9 years agoAdd unsafeTake, unsafeDrop
Roman Leshchinskiy [Wed, 9 Dec 2009 14:28:09 +0000 (14:28 +0000)] 
Add unsafeTake, unsafeDrop

9 years agoAdd unsafeInit and unsafeTail
Roman Leshchinskiy [Wed, 9 Dec 2009 14:21:11 +0000 (14:21 +0000)] 
Add unsafeInit and unsafeTail

9 years agoClean up handling of New.slice and friends
Roman Leshchinskiy [Wed, 9 Dec 2009 14:20:53 +0000 (14:20 +0000)] 
Clean up handling of New.slice and friends

9 years agoSwitch the order of argument to slice and unsafeSlice
Roman Leshchinskiy [Wed, 9 Dec 2009 13:59:47 +0000 (13:59 +0000)] 
Switch the order of argument to slice and unsafeSlice

9 years agoAdd unsafeIndex, unsafeLast etc.
Roman Leshchinskiy [Wed, 9 Dec 2009 13:34:06 +0000 (13:34 +0000)] 
Add unsafeIndex, unsafeLast etc.

9 years agoAdd unstablePartition, span, break
Roman Leshchinskiy [Wed, 9 Dec 2009 04:51:48 +0000 (04:51 +0000)] 
Add unstablePartition, span, break

9 years agoAdd generate
Roman Leshchinskiy [Wed, 9 Dec 2009 00:14:28 +0000 (00:14 +0000)] 
Add generate

9 years agoAdd all, any
Roman Leshchinskiy [Wed, 9 Dec 2009 00:02:41 +0000 (00:02 +0000)] 
Add all, any

9 years agoAdd maximumBy, minimumBy, maxIndexBy, minIndexBy
Roman Leshchinskiy [Tue, 8 Dec 2009 23:55:28 +0000 (23:55 +0000)] 
Add maximumBy, minimumBy, maxIndexBy, minIndexBy

9 years agoAdd findIndices, elemIndex, elemIndices
Roman Leshchinskiy [Tue, 8 Dec 2009 23:39:39 +0000 (23:39 +0000)] 
Add findIndices, elemIndex, elemIndices

9 years agoAdd various elemseqs
Roman Leshchinskiy [Tue, 8 Dec 2009 23:24:49 +0000 (23:24 +0000)] 
Add various elemseqs

9 years agoAdd lots of index-related collective operations
Roman Leshchinskiy [Tue, 8 Dec 2009 15:40:40 +0000 (15:40 +0000)] 
Add lots of index-related collective operations

9 years agoGet rid of inplace'
Roman Leshchinskiy [Tue, 8 Dec 2009 03:20:19 +0000 (03:20 +0000)] 
Get rid of inplace'

9 years agoFix update
Roman Leshchinskiy [Tue, 8 Dec 2009 02:52:09 +0000 (02:52 +0000)] 
Fix update

9 years agoMake inplace and inplace' strict in the stream
Roman Leshchinskiy [Mon, 7 Dec 2009 23:54:21 +0000 (23:54 +0000)] 
Make inplace and inplace' strict in the stream

9 years agoEXPERIMENTAL: Unboxing infrastructure
Roman Leshchinskiy [Mon, 7 Dec 2009 16:02:22 +0000 (16:02 +0000)] 
EXPERIMENTAL: Unboxing infrastructure

9 years agoFix stream size calculations
Roman Leshchinskiy [Mon, 7 Dec 2009 14:59:00 +0000 (14:59 +0000)] 
Fix stream size calculations

9 years agoAvoid creating unnecessary join points in Stream.replicate
Roman Leshchinskiy [Mon, 7 Dec 2009 14:40:26 +0000 (14:40 +0000)] 
Avoid creating unnecessary join points in Stream.replicate

9 years agoAdd unsafe versions of accum/update operations
Roman Leshchinskiy [Mon, 7 Dec 2009 13:30:20 +0000 (13:30 +0000)] 
Add unsafe versions of accum/update operations

9 years agoHaddock comments
Roman Leshchinskiy [Mon, 7 Dec 2009 05:03:34 +0000 (05:03 +0000)] 
Haddock comments

9 years agoUpdate package description
Roman Leshchinskiy [Mon, 7 Dec 2009 04:58:35 +0000 (04:58 +0000)] 
Update package description

9 years agoAdd Unbox (Complex a) instances
Roman Leshchinskiy [Mon, 7 Dec 2009 04:45:17 +0000 (04:45 +0000)] 
Add Unbox (Complex a) instances

9 years agoMake Unboxed vectors of tuples strict in their components
Roman Leshchinskiy [Mon, 7 Dec 2009 04:37:06 +0000 (04:37 +0000)] 
Make Unboxed vectors of tuples strict in their components

9 years agoAdd rtransform to D.V.Generic.Mutable (not used anywhere yet)
Roman Leshchinskiy [Mon, 7 Dec 2009 04:36:44 +0000 (04:36 +0000)] 
Add rtransform to D.V.Generic.Mutable (not used anywhere yet)

9 years agoLayout
Roman Leshchinskiy [Mon, 7 Dec 2009 04:36:39 +0000 (04:36 +0000)] 
Layout

9 years agoSlight optimisation
Roman Leshchinskiy [Mon, 7 Dec 2009 04:36:21 +0000 (04:36 +0000)] 
Slight optimisation

9 years agoRename internal function
Roman Leshchinskiy [Mon, 7 Dec 2009 04:18:42 +0000 (04:18 +0000)] 
Rename internal function

9 years agoExport and & or from D.V.Unboxed
Roman Leshchinskiy [Mon, 7 Dec 2009 02:16:51 +0000 (02:16 +0000)] 
Export and & or from D.V.Unboxed

9 years agoExport accumulate and update from D.V.Unboxed
Roman Leshchinskiy [Mon, 7 Dec 2009 02:15:21 +0000 (02:15 +0000)] 
Export accumulate and update from D.V.Unboxed

9 years agoComment
Roman Leshchinskiy [Sun, 6 Dec 2009 16:15:43 +0000 (16:15 +0000)] 
Comment

9 years agoFIXMEs
Roman Leshchinskiy [Sun, 6 Dec 2009 16:14:38 +0000 (16:14 +0000)] 
FIXMEs

9 years agoOptimise enumFromTo
Roman Leshchinskiy [Sun, 6 Dec 2009 16:01:04 +0000 (16:01 +0000)] 
Optimise enumFromTo

9 years agoSpecialisation code for D.V.Storable.(==) (commented out for now)
Roman Leshchinskiy [Sun, 6 Dec 2009 15:34:02 +0000 (15:34 +0000)] 
Specialisation code for D.V.Storable.(==) (commented out for now)

9 years agoAdd Ord instance for D.V.Unboxed
Roman Leshchinskiy [Sun, 6 Dec 2009 14:55:39 +0000 (14:55 +0000)] 
Add Ord instance for D.V.Unboxed

9 years agoAdd missing INLINE pragma
Roman Leshchinskiy [Sun, 6 Dec 2009 14:34:29 +0000 (14:34 +0000)] 
Add missing INLINE pragma

9 years agoAdd preliminary Eq instance for D.V.Unboxed
Roman Leshchinskiy [Sun, 6 Dec 2009 14:03:19 +0000 (14:03 +0000)] 
Add preliminary Eq instance for D.V.Unboxed

9 years agozip/unzip/zipWith 4-6 in Data.Vector
Roman Leshchinskiy [Sun, 6 Dec 2009 13:45:10 +0000 (13:45 +0000)] 
zip/unzip/zipWith 4-6 in Data.Vector

9 years agoFix zip/unzip exports in Unboxed
Roman Leshchinskiy [Sun, 6 Dec 2009 13:41:13 +0000 (13:41 +0000)] 
Fix zip/unzip exports in Unboxed

9 years agoGeneric versions of zip/zipWith/unzip 2-6
Roman Leshchinskiy [Sun, 6 Dec 2009 13:40:50 +0000 (13:40 +0000)] 
Generic versions of zip/zipWith/unzip 2-6

9 years agoFix zip rules
Roman Leshchinskiy [Sun, 6 Dec 2009 13:40:27 +0000 (13:40 +0000)] 
Fix zip rules

9 years agoSkip zip7-zip12 in Unboxed for now
Roman Leshchinskiy [Sun, 6 Dec 2009 13:23:54 +0000 (13:23 +0000)] 
Skip zip7-zip12 in Unboxed for now

9 years agoRewrite rules for stream/zip<n> from Unboxed
Roman Leshchinskiy [Sun, 6 Dec 2009 13:23:28 +0000 (13:23 +0000)] 
Rewrite rules for stream/zip<n> from Unboxed

9 years agozip4-zip6 & friends for Streams
Roman Leshchinskiy [Sun, 6 Dec 2009 13:22:44 +0000 (13:22 +0000)] 
zip4-zip6 & friends for Streams

9 years agoAdd zips/unzips
Roman Leshchinskiy [Sun, 6 Dec 2009 11:03:38 +0000 (11:03 +0000)] 
Add zips/unzips

9 years agoGenerate zips/unzips
Roman Leshchinskiy [Sun, 6 Dec 2009 11:03:24 +0000 (11:03 +0000)] 
Generate zips/unzips

9 years agoLayout
Roman Leshchinskiy [Sun, 6 Dec 2009 06:12:47 +0000 (06:12 +0000)] 
Layout

9 years agoAdd D.V.Unboxed with proper interface
Roman Leshchinskiy [Sun, 6 Dec 2009 05:50:09 +0000 (05:50 +0000)] 
Add D.V.Unboxed with proper interface

9 years agoClean up interface to mutable vectors
Roman Leshchinskiy [Sun, 6 Dec 2009 05:38:21 +0000 (05:38 +0000)] 
Clean up interface to mutable vectors

9 years agoGenerate Unbox instances for tuples
Roman Leshchinskiy [Sun, 6 Dec 2009 00:53:53 +0000 (00:53 +0000)] 
Generate Unbox instances for tuples

9 years agoMore Unboxed arrays
Roman Leshchinskiy [Sun, 6 Dec 2009 00:37:18 +0000 (00:37 +0000)] 
More Unboxed arrays

9 years agoAdd Unbox instances for primitive types
Roman Leshchinskiy [Sat, 5 Dec 2009 00:41:00 +0000 (00:41 +0000)] 
Add Unbox instances for primitive types

9 years agoFirst attempt at unboxed vectors (incomplete)
Roman Leshchinskiy [Fri, 4 Dec 2009 16:01:15 +0000 (16:01 +0000)] 
First attempt at unboxed vectors (incomplete)

9 years agoReplace basicNew by unsafeFreeze
Roman Leshchinskiy [Fri, 4 Dec 2009 15:55:45 +0000 (15:55 +0000)] 
Replace basicNew by unsafeFreeze

9 years agoType family mapping each Vector to its MVector
Roman Leshchinskiy [Fri, 4 Dec 2009 15:31:52 +0000 (15:31 +0000)] 
Type family mapping each Vector to its MVector

9 years agoUnify MVectorPure and MVector
Roman Leshchinskiy [Fri, 4 Dec 2009 08:25:19 +0000 (08:25 +0000)] 
Unify MVectorPure and MVector

9 years agoBegin large refactoring of mutable vectors
Roman Leshchinskiy [Fri, 4 Dec 2009 07:03:49 +0000 (07:03 +0000)] 
Begin large refactoring of mutable vectors

Mutable vectors are now parametrised by the state token. They are also
expected to live in the ST monad for the purposes of initialisating immutable
vectors.

9 years agoFix bug in enumFromThenTo
Roman Leshchinskiy [Fri, 4 Dec 2009 07:03:07 +0000 (07:03 +0000)] 
Fix bug in enumFromThenTo

9 years agoAdapt to primitive 0.2
Roman Leshchinskiy [Thu, 3 Dec 2009 15:14:42 +0000 (15:14 +0000)] 
Adapt to primitive 0.2

9 years agoResolve conflict with 0.4.2 branch
Roman Leshchinskiy [Thu, 3 Dec 2009 15:01:33 +0000 (15:01 +0000)] 
Resolve conflict with 0.4.2 branch

9 years agoTAG 0.4.2
Roman Leshchinskiy [Thu, 3 Dec 2009 14:49:43 +0000 (14:49 +0000)] 
TAG 0.4.2

9 years agoBump version to 0.4.2
Roman Leshchinskiy [Thu, 3 Dec 2009 14:49:32 +0000 (14:49 +0000)] 
Bump version to 0.4.2

9 years agoRequire primitive < 0.2
Roman Leshchinskiy [Thu, 3 Dec 2009 14:48:32 +0000 (14:48 +0000)] 
Require primitive < 0.2

9 years agoEXPERIMENTAL: Use ForceSpecConstr annotation to force specialisation of stream consumers
Roman Leshchinskiy [Thu, 3 Dec 2009 13:27:45 +0000 (13:27 +0000)] 
EXPERIMENTAL: Use ForceSpecConstr annotation to force specialisation of stream consumers

9 years agoRename local loop
Roman Leshchinskiy [Thu, 3 Dec 2009 13:23:00 +0000 (13:23 +0000)] 
Rename local loop

9 years agoRename some local loops
Roman Leshchinskiy [Thu, 3 Dec 2009 12:02:09 +0000 (12:02 +0000)] 
Rename some local loops

9 years agoLayout
Roman Leshchinskiy [Thu, 3 Dec 2009 12:00:23 +0000 (12:00 +0000)] 
Layout

9 years agoFuse the fairly common case of zipWith f xs xs
Roman Leshchinskiy [Wed, 2 Dec 2009 23:44:18 +0000 (23:44 +0000)] 
Fuse the fairly common case of zipWith f xs xs

9 years agoFix bug
Roman Leshchinskiy [Wed, 2 Dec 2009 16:02:37 +0000 (16:02 +0000)] 
Fix bug