arrayfire / arrayfire/arrayfire-haskell

Investigate Bits instance on Array CBool

未关闭
#34 1 条评论 0 个 reaction 已指派 2 人 已被 @chessai 认领 在 GitHub 查看
enhancement good first issue help wanted question
主要语言
Haskell
星标
60
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。