arrayfire-0.4.0.0: Haskell bindings to the ArrayFire general-purpose GPU library

CopyrightDavid Johnson (c) 2019-2020
LicenseBSD3
MaintainerDavid Johnson <djohnson.m@gmail.com>
StabilityExperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

ArrayFire.Types

Description

 
Synopsis

Documentation

data AFException Source #

Exception type for ArrayFire API

Constructors

AFException 

Fields

data Array a Source #

ArrayFire Array

Instances
(AFType a, Eq a) => Eq (Array a) Source # 
Instance details

Defined in ArrayFire.Orphans

Methods

(==) :: Array a -> Array a -> Bool #

(/=) :: Array a -> Array a -> Bool #

(Ord a, AFType a, Fractional a) => Floating (Array a) Source # 
Instance details

Defined in ArrayFire.Orphans

Methods

pi :: Array a #

exp :: Array a -> Array a #

log :: Array a -> Array a #

sqrt :: Array a -> Array a #

(**) :: Array a -> Array a -> Array a #

logBase :: Array a -> Array a -> Array a #

sin :: Array a -> Array a #

cos :: Array a -> Array a #

tan :: Array a -> Array a #

asin :: Array a -> Array a #

acos :: Array a -> Array a #

atan :: Array a -> Array a #

sinh :: Array a -> Array a #

cosh :: Array a -> Array a #

tanh :: Array a -> Array a #

asinh :: Array a -> Array a #

acosh :: Array a -> Array a #

atanh :: Array a -> Array a #

log1p :: Array a -> Array a #

expm1 :: Array a -> Array a #

log1pexp :: Array a -> Array a #

log1mexp :: Array a -> Array a #

(Fractional a, AFType a) => Fractional (Array a) Source # 
Instance details

Defined in ArrayFire.Orphans

Methods

(/) :: Array a -> Array a -> Array a #

recip :: Array a -> Array a #

fromRational :: Rational -> Array a #

(Num a, AFType a) => Num (Array a) Source # 
Instance details

Defined in ArrayFire.Orphans

Methods

(+) :: Array a -> Array a -> Array a #

(-) :: Array a -> Array a -> Array a #

(*) :: Array a -> Array a -> Array a #

negate :: Array a -> Array a #

abs :: Array a -> Array a #

signum :: Array a -> Array a #

fromInteger :: Integer -> Array a #

Show (Array a) Source # 
Instance details

Defined in ArrayFire.Orphans

Methods

showsPrec :: Int -> Array a -> ShowS #

show :: Array a -> String #

showList :: [Array a] -> ShowS #

data Window Source #

ArrayFire Window

data Features Source #

ArrayFire Features

class Storable a => AFType a where Source #

Mapping of Haskell types to ArrayFire types

Methods

afType :: Proxy a -> AFDtype Source #

Instances
AFType Double Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Float Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Int Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Int16 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Int32 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Int64 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Word Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Word8 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Word16 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Word32 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType Word64 Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType CBool Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType (Complex Double) Source # 
Instance details

Defined in ArrayFire.Internal.Types

AFType (Complex Float) Source # 
Instance details

Defined in ArrayFire.Internal.Types

data TopK Source #

TopK type

Constructors

TopKDefault 
TopKMin 
TopKMax 
Instances
Enum TopK Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

succ :: TopK -> TopK #

pred :: TopK -> TopK #

toEnum :: Int -> TopK #

fromEnum :: TopK -> Int #

enumFrom :: TopK -> [TopK] #

enumFromThen :: TopK -> TopK -> [TopK] #

enumFromTo :: TopK -> TopK -> [TopK] #

enumFromThenTo :: TopK -> TopK -> TopK -> [TopK] #

Eq TopK Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: TopK -> TopK -> Bool #

(/=) :: TopK -> TopK -> Bool #

Ord TopK Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

compare :: TopK -> TopK -> Ordering #

(<) :: TopK -> TopK -> Bool #

(<=) :: TopK -> TopK -> Bool #

(>) :: TopK -> TopK -> Bool #

(>=) :: TopK -> TopK -> Bool #

max :: TopK -> TopK -> TopK #

min :: TopK -> TopK -> TopK #

Show TopK Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

showsPrec :: Int -> TopK -> ShowS #

show :: TopK -> String #

showList :: [TopK] -> ShowS #

data Backend Source #

ArrayFire backends

Constructors

Default 
CPU 
CUDA 
OpenCL 
Instances
Eq Backend Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: Backend -> Backend -> Bool #

(/=) :: Backend -> Backend -> Bool #

Ord Backend Source # 
Instance details

Defined in ArrayFire.Internal.Types

Show Backend Source # 
Instance details

Defined in ArrayFire.Internal.Types

data BinaryOp Source #

Binary operation support

Constructors

Add 
Mul 
Min 
Max 

data MatProp Source #

Matrix properties

Instances
Eq MatProp Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: MatProp -> MatProp -> Bool #

(/=) :: MatProp -> MatProp -> Bool #

Ord MatProp Source # 
Instance details

Defined in ArrayFire.Internal.Types

Show MatProp Source # 
Instance details

Defined in ArrayFire.Internal.Types

data Cell Source #

Cell type, used in Graphics module

Constructors

Cell 
Instances
Eq Cell Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: Cell -> Cell -> Bool #

(/=) :: Cell -> Cell -> Bool #

Show Cell Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

showsPrec :: Int -> Cell -> ShowS #

show :: Cell -> String #

showList :: [Cell] -> ShowS #

data CSpace Source #

Color Space type

Constructors

Gray 
RGB 
HSV 
YCBCR 
Instances
Enum CSpace Source # 
Instance details

Defined in ArrayFire.Internal.Types

Eq CSpace Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: CSpace -> CSpace -> Bool #

(/=) :: CSpace -> CSpace -> Bool #

Ord CSpace Source # 
Instance details

Defined in ArrayFire.Internal.Types

Show CSpace Source # 
Instance details

Defined in ArrayFire.Internal.Types

data YccStd Source #

YccStd type

Constructors

Ycc601 
Ycc709 
Ycc2020 
Instances
Eq YccStd Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: YccStd -> YccStd -> Bool #

(/=) :: YccStd -> YccStd -> Bool #

Ord YccStd Source # 
Instance details

Defined in ArrayFire.Internal.Types

Show YccStd Source # 
Instance details

Defined in ArrayFire.Internal.Types

data IterativeDeconvAlgo Source #

Iterative deconvolution algo type

Instances
Enum IterativeDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

Eq IterativeDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

Ord IterativeDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

Show IterativeDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

data InverseDeconvAlgo Source #

Inverse deconvolution algo type

Instances
Enum InverseDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

Eq InverseDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

Ord InverseDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

Show InverseDeconvAlgo Source # 
Instance details

Defined in ArrayFire.Internal.Types

data Seq Source #

Sequence Type

Constructors

Seq 

Fields

Instances
Eq Seq Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

(==) :: Seq -> Seq -> Bool #

(/=) :: Seq -> Seq -> Bool #

Ord Seq Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

compare :: Seq -> Seq -> Ordering #

(<) :: Seq -> Seq -> Bool #

(<=) :: Seq -> Seq -> Bool #

(>) :: Seq -> Seq -> Bool #

(>=) :: Seq -> Seq -> Bool #

max :: Seq -> Seq -> Seq #

min :: Seq -> Seq -> Seq #

Show Seq Source # 
Instance details

Defined in ArrayFire.Internal.Types

Methods

showsPrec :: Int -> Seq -> ShowS #

show :: Seq -> String #

showList :: [Seq] -> ShowS #

data Index a Source #

Index Type

Constructors

Index 

Fields

data NormType Source #

Norm Type

Constructors

NormVectorOne

treats the input as a vector and returns the sum of absolute values

NormVectorInf

treats the input as a vector and returns the max of absolute values

NormVector2

treats the input as a vector and returns euclidean norm

NormVectorP

treats the input as a vector and returns the p-norm

NormMatrix1

return the max of column sums

NormMatrixInf

return the max of row sums

NormMatrix2

returns the max singular value). Currently NOT SUPPORTED

NormMatrixLPQ

returns Lpq-norm

NormEuclid

The default. Same as AF_NORM_VECTOR_2

data ConvMode Source #

Convolution Mode

Constructors

ConvDefault

Output of the convolution is the same size as input

ConvExpand

Output of the convolution is signal_len + filter_len - 1

data ConvDomain Source #

Convolution Domain

Constructors

ConvDomainAuto

ArrayFire automatically picks the right convolution algorithm

ConvDomainSpatial

Perform convolution in spatial domain

ConvDomainFreq

Perform convolution in frequency domain

data Storage Source #

Storage type used for Sparse arrays

Constructors

Dense 
CSR 
CSC 
COO 

data AFDType Source #

Array Fire types

Constructors

F32 
C32 
F64 
C64 
B8 
S32 
U32 
U8 
S64 
U64 
S16 
U16 

newtype AFDtype Source #

Constructors

AFDtype 

Fields

Instances
Eq AFDtype Source # 
Instance details

Defined in ArrayFire.Internal.Defines

Methods

(==) :: AFDtype -> AFDtype -> Bool #

(/=) :: AFDtype -> AFDtype -> Bool #

Show AFDtype Source # 
Instance details

Defined in ArrayFire.Internal.Defines

Storable AFDtype Source # 
Instance details

Defined in ArrayFire.Internal.Defines