arrayfire / arrayfire/arrayfire-haskell

Investigate Bits instance on Array CBool

Aperta
#34 1 commento 0 reazioni 2 assegnatari Rivendicata da @chessai Vedi su GitHub
enhancement good first issue help wanted question
Lingua principale
Haskell
Stelle
60
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.