Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add ndarray/base/where#10659

Draft
LoayAhmed304 wants to merge 1 commit intostdlib-js:developfrom
LoayAhmed304:feat/base-ndarray-where
Draft

feat: add ndarray/base/where#10659
LoayAhmed304 wants to merge 1 commit intostdlib-js:developfrom
LoayAhmed304:feat/base-ndarray-where

Conversation

@LoayAhmed304
Copy link
Contributor

Resolves #{{TODO: add issue number}}.

Description

What is the purpose of this pull request?

This pull request:

  • Implements the where function for ndarrays, which applies a condition to elements in two input ndarrays and assign results to elements in an output ndarray.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

  • #{{TODO: add related issue number}}

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

{{TODO: add disclosure if applicable}}


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Mar 2, 2026
@stdlib-bot
Copy link
Contributor

Coverage Report

Package Statements Branches Functions Lines
ndarray/base/where $\color{green}214/214$
$\color{green}+100.00%$
$\color{green}8/8$
$\color{green}+100.00%$
$\color{green}1/1$
$\color{green}+100.00%$
$\color{green}214/214$
$\color{green}+100.00%$

The above coverage report was generated for the changes in this PR.

@LoayAhmed304 LoayAhmed304 marked this pull request as draft March 2, 2026 21:49
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label Mar 2, 2026
@kgryte kgryte changed the title feat: create ndarray/base/where feat: add ndarray/base/where Mar 2, 2026
@kgryte kgryte added Feature Issue or pull request for adding a new feature. difficulty: 4 Likely to be moderately difficult. labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

difficulty: 4 Likely to be moderately difficult. Feature Issue or pull request for adding a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants