|
Data.Array.Parallel.Arr | Portability | non-portable (unboxed values and GHC libraries) | Stability | internal | Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
|
|
|
|
|
Description |
Interface to the Arr modules
|
|
Synopsis |
|
|
|
|
Types
|
|
|
Immutable boxed arrays
| Instances | |
|
|
|
|
|
Operations on immutable arrays
|
|
|
Length of an immutable boxed array
|
|
|
Access an element in an immutable, boxed array
|
|
|
Extract a slice from an array (given by its start index and length)
|
|
Operations on mutable arrays
|
|
|
Allocate a boxed array
|
|
|
Length of a mutable boxed array
|
|
|
Access an element in an mutable, boxed array
|
|
|
Update an element in an mutable, boxed array
|
|
|
Turn a mutable into an immutable array WITHOUT copying its contents, which
implies that the mutable array must not be mutated anymore after this
operation has been executed.
- The explicit size parameter supports partially filled arrays (and must be
less than or equal the size used when allocating the mutable array)
|
|
|
Turn a mutable into an immutable array WITHOUT copying its contents, which
implies that the mutable array must not be mutated anymore after this
operation has been executed.
- In contrast to unsafeFreezeMBB, this operation always freezes the
entire array.
|
|
|
Extract a slice from a mutable array (the slice is immutable)
|
|
|
Copy a the contents of an immutable array into a mutable array from the
specified position on
|
|
Types
|
|
|
Immutable unboxed arrays
| Instances | |
|
|
|
Mutable unboxed arrays
| Instances | |
|
|
Elements of unboxed arrays
|
|
|
Class of elements that can be stored in unboxed arrays
| | Methods | | Yield the element at the given position of an immutable array.
| | | Read the element at the given position of a mutable array.
| | | Write the element at the given position of a mutable array.
|
| | Instances | |
|
|
Operations on mutable arrays
|
|
|
Number of elements of a mutable unboxed array
|
|
|
Allocate an uninitialised unboxed array
|
|
|
Extract a slice from a mutable array (the slice is immutable)
|
|
|
Copy a the contents of an immutable array into a mutable array from the
specified position on
|
|
|
Turn a mutable into an immutable array WITHOUT copying its contents, which
implies that the mutable array must not be mutated anymore after this
operation has been executed.
- The explicit size parameter supports partially filled arrays (and must be
less than or equal the size used when allocating the mutable array)
|
|
|
Turn a mutable into an immutable array WITHOUT copying its contents, which
implies that the mutable array must not be mutated anymore after this
operation has been executed.
- In contrast to unsafeFreezeMBU, this operation always freezes the
entire array.
|
|
Operations on immutable arrays
|
|
Basic operations
|
|
|
Number of elements of an immutable unboxed array
|
|
|
Empty array
|
|
|
Combinators for unboxed arrays
-
Replicate combinator for unboxed arrays
|
|
|
Produces an array that consists of a subrange of the original one without
copying any elements.
|
|
|
Extract a slice from an array (given by its start index and length)
|
|
Streaming
|
|
|
Stream of unboxed arrays
-------------------------
Generate a stream from an array, from left to right
|
|
|
Construct an array from a stream, filling it from left to right
|
|
Higher-order and arithmetic operations
|
|
|
Map a function over an unboxed array
|
|
|
Reduce an unboxed array
|
|
|
Reduce an unboxed array using an *associative* combining operator
|
|
|
Prefix reduction of an unboxed array
|
|
|
Prefix reduction of an unboxed array using an *associative* combining
operator
|
|
|
Summation of an unboxed array
|
|
Conversions to/from lists
|
|
|
Convert a list to an array
|
|
|
Convert an array to a list
|
|
I/O
|
|
|
|
|
|
Produced by Haddock version 2.6.1 |