Skip to content

feat: add C implementation for stats/base/ndarray/smeanpw#10389

Open
AtharvaPatange wants to merge 5 commits intostdlib-js:developfrom
AtharvaPatange:add-smeanpw-c-implementation
Open

feat: add C implementation for stats/base/ndarray/smeanpw#10389
AtharvaPatange wants to merge 5 commits intostdlib-js:developfrom
AtharvaPatange:add-smeanpw-c-implementation

Conversation

@AtharvaPatange
Copy link
Copy Markdown

@AtharvaPatange AtharvaPatange commented Feb 20, 2026

Resolves none

Description

What is the purpose of this pull request?

This pull request:

  • feat: add C implementation for stats/base/ndarray/smeanpw

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

  • none

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 Statistics Issue or pull request related to statistical functionality. label Feb 20, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Hello! Thank you for your contribution to stdlib.

We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

@stdlib-bot stdlib-bot added First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Review A pull request which needs code review. labels Feb 20, 2026
@AtharvaPatange AtharvaPatange changed the title feat: add C implementation for stats/base/ndarray/smean feat: add C implementation for stats/base/ndarray/smeanpw Feb 20, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Hello! Thank you for your contribution to stdlib.

We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

@@ -1,7 +1,7 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2026 The Stdlib Authors.
* Copyright (c) 2025 The Stdlib Authors.
Copy link
Copy Markdown
Contributor

@LoayAhmed304 LoayAhmed304 Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright year for newly created files should be 2026. Same should apply to src/Makefile, test/test.main.js, and test/test.native.js. However it should be kept to 2025 in README.md

], # end actions
}, # end target copy_addon
], # end targets
} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is missing a trailing newline. The project's .editorconfig requires insert_final_newline = true for all files.

'<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).libpath; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
],
}, # end variables
} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as binding.gyp - this file is missing a trailing newline. The .editorconfig requires insert_final_newline = true.

#/
# @license Apache-2.0
#
# Copyright (c) 2025 The Stdlib Authors.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here - newly created file should use 2026 as the copyright year.

Suggested change
# Copyright (c) 2025 The Stdlib Authors.
# Copyright (c) 2026 The Stdlib Authors.

/**
* @license Apache-2.0
*
* Copyright (c) 2025 The Stdlib Authors.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new file, so the copyright year should be 2026.

Suggested change
* Copyright (c) 2025 The Stdlib Authors.
* Copyright (c) 2026 The Stdlib Authors.

/**
* @license Apache-2.0
*
* Copyright (c) 2025 The Stdlib Authors.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new file, so the copyright year should be 2026.

Suggested change
* Copyright (c) 2025 The Stdlib Authors.
* Copyright (c) 2026 The Stdlib Authors.

@license Apache-2.0

Copyright (c) 2025 The Stdlib Authors.
Copyright (c) 2026 The Stdlib Authors.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The copyright year for this existing file was changed from 2025 to 2026. Existing files should retain their original copyright year. Please revert this change.

Suggested change
Copyright (c) 2026 The Stdlib Authors.
Copyright (c) 2025 The Stdlib Authors.

@Planeshifter Planeshifter added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Changes Pull request which needs changes before being merged. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants