Skip to content

Add ArgWhereNode (np.argwhere / transpose of np.nonzero) - #590

Draft
arcondello wants to merge 1 commit into
dwavesystems:mainfrom
arcondello:feature/argwhere
Draft

Add ArgWhereNode (np.argwhere / transpose of np.nonzero)#590
arcondello wants to merge 1 commit into
dwavesystems:mainfrom
arcondello:feature/argwhere

Conversation

@arcondello

@arcondello arcondello commented Jul 23, 2026

Copy link
Copy Markdown
Member

Experiment with vibecoding a node. Needs very careful review (first by me).

AI Generation Disclosure

Fully vibecoded using Claude.

Add a C++ node whose output is the (num_nonzero, ndim) array of indices of
the non-zero elements of its predecessor, equivalent to
np.transpose(np.nonzero(x)). The first dimension is dynamic; the predecessor
may itself be dynamically sized. Scalar (0d) predecessors are rejected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant