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

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

ArrayFire.Features

Description

 
Synopsis

Documentation

createFeatures :: Int -> Features Source #

Construct Features

>>> features = createFeatures (createFeatures 10)

retainFeatures :: Features -> Features Source #

Retain Features

>>> features = retainFeatures (createFeatures 10)

getFeaturesNum :: Features -> Int Source #

Get number of Features

link

>>> getFeaturesNum (createFeatures 10)
10

getFeaturesXPos :: Features -> Array a Source #

Get Feature X-position

>>> getFeaturesXPos (createFeatures 10)
ArrayFire Array
[10 1 1 1]
   0.0000     0.0000     0.0000     0.0000     0.0000     2.1250     0.0000     2.2500     0.0000     0.0000

getFeaturesYPos :: Features -> Array a Source #

Get Feature Y-position

>>> getFeaturesYPos (createFeatures 10)
ArrayFire Array
[10 1 1 1]
   0.0000     0.0000     0.0000     0.0000     0.0000     0.0000     0.0000     0.0000     0.0000     0.0000

getFeaturesScore :: Features -> Array a Source #

Get Feature Score

>>> getFeaturesScore (createFeatures 10)
ArrayFire Array
[10 1 1 1]
   0.0000     1.8750     0.0000     2.0000     0.0000     2.1250     0.0000     2.2500        nan        nan

getFeaturesOrientation :: Features -> Array a Source #

Get Feature orientation

>>> getFeaturesOrientation (createFeatures 10)
ArrayFire Array
[10 1 1 1]
   0.0000     1.8750     0.0000     2.0000     0.0000     2.1250     0.0000     2.2500     0.0000     0.0000

getFeaturesSize :: Features -> Array a Source #

Get Feature size

>>> getFeaturesSize (createFeatures 10)
ArrayFire Array
[10 1 1 1]
      nan        nan        nan        nan        nan        nan        nan        nan        nan        nan