Skip to content

feat: add math/base/special/ccisf - #17006

Open
masrulmallick014-cpu wants to merge 2 commits into
stdlib-js:developfrom
masrulmallick014-cpu:feat/ccisf
Open

masrulmallick014-cpu wants to merge 2 commits into
stdlib-js:developfrom
masrulmallick014-cpu:feat/ccisf

Conversation

@masrulmallick014-cpu

@masrulmallick014-cpu masrulmallick014-cpu commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Ref: #649

Description

What is the purpose of this pull request?

This pull request:

  • adds @stdlib/math/base/special/ccisf, which evaluates the cis function for a single-precision complex floating-point number. It includes a JavaScript implementation, a C implementation with a Node.js native add-on, and assign and strided methods.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Reference Packages

Did the content of this pull request follow one or more existing packages? Answering is optional.

This pull request followed these packages:

  • math/base/special/ccis
  • math/base/special/cexpf

What carried over from the reference(s)?

  • Package structure, naming, test shape, benchmark layout, and documentation from ccis. Single-precision conventions (Complex64, Float32Array, f32 rounding, float32 C types) from cexpf.

What differed, or what did you have to work out yourself?

  • Test fixtures are generated with Float32 inputs in Julia. Tests compare results within 2 ULP (units in last place) instead of exact matches. The assign tests round inputs with f32 so they match Complex64 inputs.

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.

  • Read, understood, and followed the [contributing guidelines][contributing].

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.".

I used Claude Code to understand the problem and took help to write the code


@masrulmallick014-cpu
masrulmallick014-cpu requested a review from a team November 30, 2026 13:05
@stdlib-bot stdlib-bot added Math Issue or pull request specific to math functionality. Needs Review A pull request which needs code review. and removed Needs Review A pull request which needs code review. labels Nov 30, 2026
@stdlib-bot

stdlib-bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
math/base/special/ccisf $\\color{green}320/320$
$\\color{green}+0.00\\%$
$\\color{green}10/10$
$\\color{green}+0.00\\%$
$\\color{green}4/4$
$\\color{green}+0.00\\%$
$\\color{green}320/320$
$\\color{green}+0.00\\%$

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Math Issue or pull request specific to math functionality. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants