arrayfire / arrayfire/arrayfire-haskell

Investigate Bits instance on Array CBool

Offen
#34 1 Kommentar 0 Reaktionen 2 zugewiesene Personen Beansprucht von @chessai Auf GitHub ansehen
enhancement good first issue help wanted question
Vorherrschende Sprache
Haskell
Sterne
60
Forks
5
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Theoretically, there's no reason this can't be supported.

```haskell
instance Bits (ArrayFire CBool) where
(.&.) = A.and
(.|.) = A.or
xor = A.bitXor
shiftL x n = A.shiftL x (scalar n)
shiftR x n = A.shiftR x (scalar n)
```

Still need to look into implementing the following:
```haskell
(rotate | rotateL, rotateR), bitSize, bitSizeMaybe, isSigned, testBit, bit, popCount
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.