| Copyright | David Johnson (c) 2019-2020 |
|---|---|
| License | BSD3 |
| Maintainer | David Johnson <djohnson.m@gmail.com> |
| Stability | Experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
ArrayFire.Types
Description
Various Types related to the ArrayFire API
Synopsis
- data AFException = AFException {}
- data AFExceptionType
- = NoMemoryError
- | DriverError
- | RuntimeError
- | InvalidArrayError
- | ArgError
- | SizeError
- | TypeError
- | DiffTypeError
- | BatchError
- | DeviceError
- | NotSupportedError
- | NotConfiguredError
- | NonFreeError
- | NoDblError
- | NoGfxError
- | LoadLibError
- | LoadSymError
- | BackendMismatchError
- | InternalError
- | UnknownError
- | UnhandledError
- data Array a
- data Window
- data RandomEngine
- data Features
- class Storable a => AFType a where
- data TopK
- data Backend
- data MatchType
- data BinaryOp
- data MatProp
- data HomographyType
- data RandomEngineType
- data Cell = Cell {}
- data MarkerType
- data InterpType
- data Connectivity
- data CSpace
- data YccStd
- data MomentType
- = M00
- | M01
- | M10
- | M11
- | FirstOrder
- data CannyThreshold
- data FluxFunction
- data DiffusionEq
- data IterativeDeconvAlgo
- data InverseDeconvAlgo
- data Seq = Seq {}
- data Index a = Index {}
- data NormType
- data ConvMode
- data ConvDomain
- data BorderType
- data Storage
- data AFDType
- newtype AFDtype = AFDtype {}
- data ColorMap
Documentation
data AFException Source #
Exception type for ArrayFire API
Constructors
| AFException | |
Fields
| |
Instances
| Eq AFException Source # | |
Defined in ArrayFire.Exception | |
| Show AFException Source # | |
Defined in ArrayFire.Exception Methods showsPrec :: Int -> AFException -> ShowS # show :: AFException -> String # showList :: [AFException] -> ShowS # | |
| Exception AFException Source # | |
Defined in ArrayFire.Exception Methods toException :: AFException -> SomeException # fromException :: SomeException -> Maybe AFException # displayException :: AFException -> String # | |
data AFExceptionType Source #
ArrayFire exception type
Constructors
Instances
| Eq AFExceptionType Source # | |
Defined in ArrayFire.Exception Methods (==) :: AFExceptionType -> AFExceptionType -> Bool # (/=) :: AFExceptionType -> AFExceptionType -> Bool # | |
| Show AFExceptionType Source # | |
Defined in ArrayFire.Exception Methods showsPrec :: Int -> AFExceptionType -> ShowS # show :: AFExceptionType -> String # showList :: [AFExceptionType] -> ShowS # | |
ArrayFire Array
Instances
| (AFType a, Eq a) => Eq (Array a) Source # | |
| (Ord a, AFType a, Fractional a) => Floating (Array a) Source # | |
| (Fractional a, AFType a) => Fractional (Array a) Source # | |
| (Num a, AFType a) => Num (Array a) Source # | |
| Show (Array a) Source # | |
data RandomEngine Source #
ArrayFire RandomEngine
class Storable a => AFType a where Source #
Mapping of Haskell types to ArrayFire types
Instances
TopK type
Constructors
| TopKDefault | |
| TopKMin | |
| TopKMax |
ArrayFire backends
Match type
Constructors
| MatchTypeSAD | |
| MatchTypeZSAD | |
| MatchTypeLSAD | |
| MatchTypeSSD | |
| MatchTypeZSSD | |
| MatchTypeLSSD | |
| MatchTypeNCC | |
| MatchTypeZNCC | |
| MatchTypeSHD |
Instances
| Enum MatchType Source # | |
Defined in ArrayFire.Internal.Types Methods succ :: MatchType -> MatchType # pred :: MatchType -> MatchType # fromEnum :: MatchType -> Int # enumFrom :: MatchType -> [MatchType] # enumFromThen :: MatchType -> MatchType -> [MatchType] # enumFromTo :: MatchType -> MatchType -> [MatchType] # enumFromThenTo :: MatchType -> MatchType -> MatchType -> [MatchType] # | |
| Eq MatchType Source # | |
| Ord MatchType Source # | |
| Show MatchType Source # | |
Binary operation support
Matrix properties
data HomographyType Source #
Homography Type
Instances
data RandomEngineType Source #
Type for different RandomEngines
Instances
| Eq RandomEngineType Source # | |
Defined in ArrayFire.Internal.Types Methods (==) :: RandomEngineType -> RandomEngineType -> Bool # (/=) :: RandomEngineType -> RandomEngineType -> Bool # | |
| Show RandomEngineType Source # | |
Defined in ArrayFire.Internal.Types Methods showsPrec :: Int -> RandomEngineType -> ShowS # show :: RandomEngineType -> String # showList :: [RandomEngineType] -> ShowS # | |
Cell type, used in Graphics module
data MarkerType Source #
Marker type
Constructors
| MarkerTypeNone | |
| MarkerTypePoint | |
| MarkerTypeCircle | |
| MarkerTypeSquare | |
| MarkerTypeTriangle | |
| MarkerTypeCross | |
| MarkerTypePlus | |
| MarkerTypeStar |
Instances
data InterpType Source #
Interpolation type
Constructors
| Nearest | |
| Linear | |
| Bilinear | |
| Cubic | |
| LowerInterp | |
| LinearCosine | |
| BilinearCosine | |
| Bicubic | |
| CubicSpline | |
| BicubicSpline |
Instances
data Connectivity Source #
Connectivity Type
Instances
Color Space type
data MomentType Source #
Moment types
Constructors
| M00 | |
| M01 | |
| M10 | |
| M11 | |
| FirstOrder |
Instances
| Eq MomentType Source # | |
Defined in ArrayFire.Internal.Types | |
| Ord MomentType Source # | |
Defined in ArrayFire.Internal.Types Methods compare :: MomentType -> MomentType -> Ordering # (<) :: MomentType -> MomentType -> Bool # (<=) :: MomentType -> MomentType -> Bool # (>) :: MomentType -> MomentType -> Bool # (>=) :: MomentType -> MomentType -> Bool # max :: MomentType -> MomentType -> MomentType # min :: MomentType -> MomentType -> MomentType # | |
| Show MomentType Source # | |
Defined in ArrayFire.Internal.Types Methods showsPrec :: Int -> MomentType -> ShowS # show :: MomentType -> String # showList :: [MomentType] -> ShowS # | |
data CannyThreshold Source #
Canny Theshold type
Instances
data FluxFunction Source #
Flux function type
Constructors
| FluxDefault | |
| FluxQuadratic | |
| FluxExponential |
Instances
data DiffusionEq Source #
Diffusion type
Constructors
| DiffusionDefault | |
| DiffusionGrad | |
| DiffusionMCDE |
Instances
data IterativeDeconvAlgo Source #
Iterative deconvolution algo type
Constructors
| DeconvDefault | |
| DeconvLandweber | |
| DeconvRichardsonLucy |
Instances
data InverseDeconvAlgo Source #
Inverse deconvolution algo type
Constructors
| InverseDeconvDefault | |
| InverseDeconvTikhonov |
Instances
Index Type
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 |
Instances
| Enum NormType Source # | |
Defined in ArrayFire.Internal.Types | |
| Eq NormType Source # | |
| Show NormType 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 |
Instances
| Enum ConvMode Source # | |
Defined in ArrayFire.Internal.Types | |
| Eq ConvMode Source # | |
| Show ConvMode Source # | |
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 |
Instances
| Enum ConvDomain Source # | |
Defined in ArrayFire.Internal.Types Methods succ :: ConvDomain -> ConvDomain # pred :: ConvDomain -> ConvDomain # toEnum :: Int -> ConvDomain # fromEnum :: ConvDomain -> Int # enumFrom :: ConvDomain -> [ConvDomain] # enumFromThen :: ConvDomain -> ConvDomain -> [ConvDomain] # enumFromTo :: ConvDomain -> ConvDomain -> [ConvDomain] # enumFromThenTo :: ConvDomain -> ConvDomain -> ConvDomain -> [ConvDomain] # | |
| Eq ConvDomain Source # | |
Defined in ArrayFire.Internal.Types | |
| Show ConvDomain Source # | |
Defined in ArrayFire.Internal.Types Methods showsPrec :: Int -> ConvDomain -> ShowS # show :: ConvDomain -> String # showList :: [ConvDomain] -> ShowS # | |
data BorderType Source #
Border Type
Instances
Storage type used for Sparse arrays
Instances
| Enum Storage Source # | |
| Eq Storage Source # | |
| Ord Storage Source # | |
Defined in ArrayFire.Internal.Types | |
| Show Storage Source # | |
Array Fire types
Instances
| Enum AFDType Source # | |
| Eq AFDType Source # | |
| Show AFDType Source # | |
Instances
| Eq AFDtype Source # | |
| Show AFDtype Source # | |
| Storable AFDtype Source # | |
ColorMap type
Constructors
| ColorMapDefault | |
| ColorMapSpectrum | |
| ColorMapColors | |
| ColorMapRed | |
| ColorMapMood | |
| ColorMapHeat | |
| ColorMapBlue | |
| ColorMapInferno | |
| ColorMapMagma | |
| ColorMapPlasma | |
| ColorMapViridis |
Instances
| Enum ColorMap Source # | |
Defined in ArrayFire.Internal.Types | |
| Eq ColorMap Source # | |
| Ord ColorMap Source # | |
Defined in ArrayFire.Internal.Types | |
| Show ColorMap Source # | |