Data.Array.Accelerate

The Accelerate Array Language

Embedded array computations

data Acc a

Arrays

data Array sh e

class Arrays a

type Scalar e

type Vector e

type Segments i

Array elements

class Elt a

Array shapes & indices

data Z

data tail :. head

type DIM0

type DIM1

type DIM2

type DIM3

type DIM4

type DIM5

type DIM6

type DIM7

type DIM8

type DIM9

class Shape sh

class Slice sl

data All

data Any sh

Array access

Element indexing

(!)

(!!)

the

Shape information

null

length

shape

size

shapeSize

Construction

Introduction

use

unit

Initialisation

generate

fill

Enumeration

enumFromN

enumFromStepN

Concatenation

(++)

Composition

Flow control

(?|)

acond

awhile

class IfThenElse t

Controlling execution

(>->)

compute

Element-wise operations

Indexing

indexed

Mapping

map

imap

Zipping

zipWith

zipWith3

zipWith4

zipWith5

zipWith6

zipWith7

zipWith8

zipWith9

izipWith

izipWith3

izipWith4

izipWith5

izipWith6

izipWith7

izipWith8

izipWith9

zip

zip3

zip4

zip5

zip6

zip7

zip8

zip9

Unzipping

unzip

unzip3

unzip4

unzip5

unzip6

unzip7

unzip8

unzip9

Modifying Arrays

Shape manipulation

reshape

flatten

Replication

replicate

Extracting sub-arrays

slice

init

tail

take

drop

slit

Permutations

Forward permutation (scatter)

permute

ignore

scatter

Backward permutation (gather)

backpermute

gather

Specialised permutations

reverse

transpose

Filtering

filter

Folding

fold

fold1

foldAll

fold1All

Segmented reductions

foldSeg

fold1Seg

Specialised reductions

all

any

and

or

sum

product

minimum

maximum

Scans (prefix sums)

scanl

scanl1

scanl'

scanr

scanr1

scanr'

prescanl

postscanl

prescanr

postscanr

Segmented scans

scanlSeg

scanl1Seg

scanl'Seg

prescanlSeg

postscanlSeg

scanrSeg

scanr1Seg

scanr'Seg

prescanrSeg

postscanrSeg

Stencils

stencil

stencil2

Stencil specification

class Stencil sh a stencil

data Boundary a

Common stencil patterns

type Stencil3 a

type Stencil5 a

type Stencil7 a

type Stencil9 a

type Stencil3x3 a

type Stencil5x3 a

type Stencil3x5 a

type Stencil5x5 a

type Stencil3x3x3 a

type Stencil5x3x3 a

type Stencil3x5x3 a

type Stencil3x3x5 a

type Stencil5x5x3 a

type Stencil5x3x5 a

type Stencil3x5x5 a

type Stencil5x5x5 a

The Accelerate Expression Language

Scalar data types

data Exp t

Type classes

Basic type classes

class Eq a

class Ord a

type Bounded a

minBound

maxBound

Numeric type classes

type Num a

(+)

(-)

(*)

negate

abs

signum

fromInteger

type Integral a

quot

rem

div

mod

quotRem

divMod

type Fractional a

(/)

recip

fromRational

type Floating a

pi

sin

cos

tan

asin

acos

atan

sinh

cosh

tanh

asinh

acosh

atanh

exp

sqrt

log

(**)

logBase

class RealFrac a

div'

mod'

divMod'

class RealFloat a

Numeric conversion classes

class FromIntegral a b

class ToFloating a b

Lifting and Unlifting

class Lift c e

class Unlift c e

lift1

lift2

lift3

ilift1

ilift2

ilift3

Scalar operations

Introduction

constant

Tuples

fst

afst

snd

asnd

curry

uncurry

Flow control

(?)

caseof

cond

while

iterate

Scalar reduction

sfoldl

Logical operations

(&&)

(||)

not

Numeric operations

subtract

even

odd

gcd

lcm

(^)

(^^)

Shape manipulation

index0

index1

unindex1

index2

unindex2

index3

unindex3

indexHead

indexTail

toIndex

fromIndex

intersect

Conversions

ord

chr

boolToInt

bitcast

Foreign Function Interface (FFI)

foreignAcc

foreignExp

Plain arrays

Operations

arrayRank

arrayShape

arraySize

indexArray

Getting data in

Function

fromFunction

Lists

fromList

toList

Prelude re-exports

(.)

($)

error

undefined

const

data Int

data Int8

data Int16

data Int32

data Int64

data Word

data Word8

data Word16

data Word32

data Word64

data Float

data Double

data Bool

data Char

data CFloat

data CDouble

data CShort

data CUShort

data CInt

data CUInt

data CLong

data CULong

data CLLong

data CULLong

data CChar

data CSChar

data CUChar

class IsScalar a

class IsNum a

class IsBounded a

class IsIntegral a

class IsFloating a

class IsNonNum a