NWChemEx / NWChemEx/TAMM

Binary masks?

Open
#77 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C++
Stars
18
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Maybe I missed it, but is it possible to generate a binary-mask for a tensor? Basically given a tensor T, I want to generate a tensor M which is the same shape as T, with boolean elements such that a particular element of M is true if the corresponding element of T satisfies some condition. I can get the same effect with apply_ewise, but with substantially greater memory cost.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing tensor operations and the apply_ewise approach mentioned in the issue. Determine how a same-shape boolean tensor could represent a condition without the stated memory cost, and clarify the API and expected behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.