darcs-mirrors/vector.git
9 years agoWhitespace
Roman Leshchinskiy [Sat, 17 Apr 2010 07:29:59 +0000 (07:29 +0000)] 
Whitespace

9 years agoRefactoring
Roman Leshchinskiy [Sat, 17 Apr 2010 07:28:45 +0000 (07:28 +0000)] 
Refactoring

9 years agoAdd clone and change fusion rules accordingly
Roman Leshchinskiy [Sat, 17 Apr 2010 07:16:04 +0000 (07:16 +0000)] 
Add clone and change fusion rules accordingly

9 years agoTie New to a particular vector type
Roman Leshchinskiy [Sat, 17 Apr 2010 06:37:27 +0000 (06:37 +0000)] 
Tie New to a particular vector type

We now have (New v a) which can only be used to create vectors of type (v a)
where before, (New a) could be used to create arbitrary vectors. This allows
the initialiser in New to include operations which only work for a particular
implementation of Vector. This will be quite useful in the future, I'm sure.

9 years agoAdd Generic.modify
Roman Leshchinskiy [Fri, 16 Apr 2010 01:37:25 +0000 (01:37 +0000)] 
Add Generic.modify

9 years agoChange order of arguments in New.modify
Roman Leshchinskiy [Fri, 16 Apr 2010 01:37:14 +0000 (01:37 +0000)] 
Change order of arguments in New.modify

9 years agoSupport for copying immutable vectors into mutable ones
Roman Leshchinskiy [Thu, 15 Apr 2010 00:54:04 +0000 (00:54 +0000)] 
Support for copying immutable vectors into mutable ones

9 years agoRename copy -> force
Roman Leshchinskiy [Thu, 15 Apr 2010 00:47:11 +0000 (00:47 +0000)] 
Rename copy -> force

9 years agoSupport for copying immutable vectors into mutable ones
Roman Leshchinskiy [Wed, 14 Apr 2010 16:22:01 +0000 (16:22 +0000)] 
Support for copying immutable vectors into mutable ones

9 years agoMake toList fusible with GHC's foldr/build list fusion framework
Roman Leshchinskiy [Thu, 8 Apr 2010 06:57:12 +0000 (06:57 +0000)] 
Make toList fusible with GHC's foldr/build list fusion framework

9 years agoClean up LANGUAGE pragmas
Roman Leshchinskiy [Wed, 7 Apr 2010 07:00:00 +0000 (07:00 +0000)] 
Clean up LANGUAGE pragmas

9 years agoChangelog
Roman Leshchinskiy [Wed, 7 Apr 2010 06:45:09 +0000 (06:45 +0000)] 
Changelog

9 years agoAdd link to trac
Roman Leshchinskiy [Wed, 7 Apr 2010 06:42:12 +0000 (06:42 +0000)] 
Add link to trac

9 years agoUse copyBytes instead of a direct call to memcpy
Roman Leshchinskiy [Wed, 7 Apr 2010 03:21:56 +0000 (03:21 +0000)] 
Use copyBytes instead of a direct call to memcpy

9 years agoUpdate copyright notices
Roman Leshchinskiy [Wed, 7 Apr 2010 03:17:50 +0000 (03:17 +0000)] 
Update copyright notices

9 years agoTypeable instances for mutable vectors
Roman Leshchinskiy [Wed, 7 Apr 2010 03:12:59 +0000 (03:12 +0000)] 
Typeable instances for mutable vectors

9 years agoSupport 6.10
Roman Leshchinskiy [Wed, 7 Apr 2010 03:07:27 +0000 (03:07 +0000)] 
Support 6.10

We use mkNorepType instead of mkNoRepType since the latter isn't available in
6.10. The former, however, is deprecated in 6.12 and later versions which
leads to warnings. I'd be interested to know what portable code is supposed to
look like in this particular case.

9 years agoRequire base 4
Roman Leshchinskiy [Wed, 7 Apr 2010 03:07:19 +0000 (03:07 +0000)] 
Require base 4

9 years agoTrim imports
Roman Leshchinskiy [Wed, 7 Apr 2010 03:06:41 +0000 (03:06 +0000)] 
Trim imports

9 years agoData and Typeable instances for immutable vectors
Roman Leshchinskiy [Wed, 7 Apr 2010 02:44:50 +0000 (02:44 +0000)] 
Data and Typeable instances for immutable vectors

9 years agoAdd comment
Roman Leshchinskiy [Wed, 7 Apr 2010 00:13:20 +0000 (00:13 +0000)] 
Add comment

9 years agoRemove comment
Roman Leshchinskiy [Wed, 7 Apr 2010 00:12:31 +0000 (00:12 +0000)] 
Remove comment

9 years agoChange impl of reverse
Roman Leshchinskiy [Wed, 7 Apr 2010 00:12:23 +0000 (00:12 +0000)] 
Change impl of reverse

9 years agoStore Ptr to data instead of offset in storable vectors
Roman Leshchinskiy [Sun, 4 Apr 2010 13:20:17 +0000 (13:20 +0000)] 
Store Ptr to data instead of offset in storable vectors

9 years agoNuke cbits
Roman Leshchinskiy [Sun, 4 Apr 2010 12:57:04 +0000 (12:57 +0000)] 
Nuke cbits

9 years agoUse memcpy from primitive
Roman Leshchinskiy [Sun, 4 Apr 2010 12:55:46 +0000 (12:55 +0000)] 
Use memcpy from primitive

9 years agoUse memcpy for copying vectors where appropriate
Roman Leshchinskiy [Sun, 21 Feb 2010 12:26:02 +0000 (12:26 +0000)] 
Use memcpy for copying vectors where appropriate

9 years agoRequire primitive 0.3
Roman Leshchinskiy [Sun, 21 Feb 2010 12:25:47 +0000 (12:25 +0000)] 
Require primitive 0.3

9 years agoAdd fromListN
Roman Leshchinskiy [Sun, 21 Feb 2010 02:48:27 +0000 (02:48 +0000)] 
Add fromListN

9 years agoAdd unfoldrN
Roman Leshchinskiy [Sun, 21 Feb 2010 02:28:11 +0000 (02:28 +0000)] 
Add unfoldrN

9 years agoExport munstream and munstreamR from ./Data/Vector/Generic/Mutable.hs
Don Stewart [Sun, 21 Feb 2010 01:17:24 +0000 (01:17 +0000)] 
Export munstream and munstreamR from ./Data/Vector/Generic/Mutable.hs

9 years agoBump version number
Roman Leshchinskiy [Sun, 21 Feb 2010 02:14:34 +0000 (02:14 +0000)] 
Bump version number

9 years agoExport apply and modify from Data.Vector.Generic.New
dan.doel [Sat, 27 Feb 2010 07:34:34 +0000 (07:34 +0000)] 
Export apply and modify from Data.Vector.Generic.New

9 years agoSpecialize enumFromTo for Double and Float
Don Stewart [Sun, 21 Feb 2010 00:51:45 +0000 (00:51 +0000)] 
Specialize enumFromTo for Double and Float

9 years agoAdd link to tutorial in .cabal file
Don Stewart [Sat, 20 Feb 2010 02:38:35 +0000 (02:38 +0000)] 
Add link to  tutorial in .cabal file

9 years agoWork around simplifier problem in 6.12
Roman Leshchinskiy [Fri, 19 Feb 2010 08:39:20 +0000 (08:39 +0000)] 
Work around simplifier problem in 6.12

See [HACKS:Eq and Ord instances]

9 years agoCompile with -fno-method-sharing for ghc < 6.13
Roman Leshchinskiy [Fri, 19 Feb 2010 08:38:33 +0000 (08:38 +0000)] 
Compile with -fno-method-sharing for ghc < 6.13

This turns out to have a lot of beneficial effects on the code.

9 years agoNew file HACKS which explains various performance hacks in the library
Roman Leshchinskiy [Fri, 19 Feb 2010 04:39:05 +0000 (04:39 +0000)] 
New file HACKS which explains various performance hacks in the library

9 years agoMake null fuse properly
Roman Leshchinskiy [Wed, 17 Feb 2010 13:12:00 +0000 (13:12 +0000)] 
Make null fuse properly

9 years agoBump version
Roman Leshchinskiy [Wed, 17 Feb 2010 08:32:57 +0000 (08:32 +0000)] 
Bump version

9 years agoFix typo
Roman Leshchinskiy [Wed, 17 Feb 2010 08:32:52 +0000 (08:32 +0000)] 
Fix typo

9 years agoDocumentation only (for Data.Vector module)
Don Stewart [Tue, 16 Feb 2010 04:25:38 +0000 (04:25 +0000)] 
Documentation only (for Data.Vector module)

9 years agoImport uvector microbenchmarks for fusion
Don Stewart [Mon, 15 Feb 2010 20:44:15 +0000 (20:44 +0000)] 
Import uvector microbenchmarks for fusion

9 years agoFix dependency on base 0_5
Roman Leshchinskiy [Mon, 15 Feb 2010 05:26:37 +0000 (05:26 +0000)] 
Fix dependency on base

9 years agoUpdate homepage and copyright notices
Roman Leshchinskiy [Mon, 15 Feb 2010 04:02:05 +0000 (04:02 +0000)] 
Update homepage and copyright notices

9 years agoAdd facilities for accessing the memory of Storable vectors
Roman Leshchinskiy [Mon, 15 Feb 2010 03:53:10 +0000 (03:53 +0000)] 
Add facilities for accessing the memory of Storable vectors

9 years agoExport swap and unsafeSwap
Roman Leshchinskiy [Mon, 15 Feb 2010 03:13:47 +0000 (03:13 +0000)] 
Export swap and unsafeSwap

9 years agoAdd changelog to package description
Roman Leshchinskiy [Sun, 20 Dec 2009 12:02:55 +0000 (12:02 +0000)] 
Add changelog to package description

9 years agoSmall optimisation
Roman Leshchinskiy [Tue, 15 Dec 2009 13:55:36 +0000 (13:55 +0000)] 
Small optimisation

9 years agoDelay inlining min and max in take and drop
Roman Leshchinskiy [Sat, 12 Dec 2009 00:00:23 +0000 (00:00 +0000)] 
Delay inlining min and max in take and drop

9 years agoAdd tests
Roman Leshchinskiy [Fri, 11 Dec 2009 07:32:46 +0000 (07:32 +0000)] 
Add tests

9 years agoAdd enumFromN, enumFromStepN
Roman Leshchinskiy [Fri, 11 Dec 2009 07:22:06 +0000 (07:22 +0000)] 
Add enumFromN, enumFromStepN

9 years agoFix size checks in enumFromTo specialisations
Roman Leshchinskiy [Fri, 11 Dec 2009 06:17:16 +0000 (06:17 +0000)] 
Fix size checks in enumFromTo specialisations

9 years agoAdd partition
Roman Leshchinskiy [Fri, 11 Dec 2009 02:22:27 +0000 (02:22 +0000)] 
Add partition

9 years agoAdd foldr', foldr1', ifoldr'
Roman Leshchinskiy [Fri, 11 Dec 2009 01:52:15 +0000 (01:52 +0000)] 
Add foldr', foldr1', ifoldr'

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

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