intel / intel/rohd-hcl

Add `extension`s for converting to/from one-hot/binary

Open
#19 1 comment 0 reactions 1 assignee Claimed by @sweeksBigBlue View on GitHub
enhancement good first issue
Dominant language
Dart
Stars
115
Forks
39
Avg merge
1d 13h
Merged PRs (30d)
1

Description

### Motivation

Since both `OneHotToBinary` and `BinaryToOneHot` have one input and one output, it would be nice to access them with an API on top of `Logic` and `LogicValue` to convert easily.

### Desired solution

Add `oneHotToBinary` and `binaryToOneHot` as `extension`s on `Logic` and `LogicValue`.

### Alternatives considered

_No response_

### Additional details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.