Comparison and getting boolean mask
Open
api
feature
ndarray
- Dominant language
- Kotlin
- Stars
- 734
- Forks
- 51
- Avg merge
- 9h 52m
- Merged PRs (30d)
- 6
Description
I have an NDArray (say idmap1) and would like to compare it with a number to get a boolean mask (numpy boolean style), as shown below:
```
mask = ((idmap1 == 0) & (idmap2 != 1))
idmap1[mask] = idmap2[mask]
```
Is there a way to realize this using multik library? Thank you!
Contributor guide
Research direction
The issue names no files, tests, or code entry points. Start by locating Multik's NDArray comparison and indexing APIs, then determine how boolean masks would interact with element assignment. Done means the shown combined comparisons, mask-based selection, and assignment work as requested, with coverage for the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100