Skip to content

Conversation

@Neerajpathak07
Copy link
Member

Resolves none.

Description

What is the purpose of this pull request?

This pull request:

  • Adds C implementation for number/float16/base/mul

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

Comment on lines +21 to +33
var toFloat16 = require( '@stdlib/number/float64/base/to-float16' );
var uniform = require( '@stdlib/random/array/uniform' );
var map = require( '@stdlib/array/base/map' );
var logEachMap = require( '@stdlib/console/log-each-map' );
var mul = require( './../lib' );
var mul= require( './../lib' );

var x = discreteUniform( 100, -50, 50 );
var y = discreteUniform( 100, -50, 50 );
// Create an array of random half-precision floating-point numbers:
var x = map( uniform( 100, -50.0, 50.0 ), toFloat16 );

logEachMap( '%d x %d = %d', x, y, mul );
// Create an array of random half-precision floating-point numbers:
var y = map( uniform( 100, -50.0, 50.0 ), toFloat16 );

logEachMap( '%0.4f x %0.4f => %0.4f', x, y, mul);
Copy link
Member Author

Choose a reason for hiding this comment

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

updated the pre-existing example similar in the markdown as well!!

@Neerajpathak07
Copy link
Member Author

/stdlib update-copyright-years

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Jan 2, 2026
@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label Jan 2, 2026
@stdlib-bot
Copy link
Contributor

stdlib-bot commented Jan 2, 2026

Coverage Report

Package Statements Branches Functions Lines
number/float16/base/mul $\color{green}177/177$
$\color{green}+0.00%$
$\color{green}5/5$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}177/177$
$\color{green}+0.00%$

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

@kgryte
Copy link
Member

kgryte commented Jan 2, 2026

@Neerajpathak07 This appears to be a duplicate of #9486.

@Neerajpathak07
Copy link
Member Author

ahh my bad will close this one!!

@Neerajpathak07 Neerajpathak07 added the Potential Duplicate There might be another pull request resolving the same issue. label Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Potential Duplicate There might be another pull request resolving the same issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants