Kotlin / Kotlin/multik

Comparison and getting boolean mask

Open
#150 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.