Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add C implementation for math/base/special/asec #1720

Merged
merged 5 commits into from
Mar 9, 2024
Merged

feat: add C implementation for math/base/special/asec #1720

merged 5 commits into from
Mar 9, 2024

Conversation

Rejoan-Sardar
Copy link
Contributor

Resolves #861 .

Description

What is the purpose of this pull request?

This pull request:Add C implementation for @stdlib/math/base/special/asec

Related Issues

Does this pull request have any related issues?

This pull request:

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

@stdlib-js/reviewers

@Planeshifter Planeshifter changed the title feat:Add C implementation for @stdlib/math/base/special/asec feat: add C implementation for math/base/special/asec Mar 5, 2024
Copy link
Member

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

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

Requested changes, once addressed this can be ready.

@@ -2,7 +2,7 @@

@license Apache-2.0

Copyright (c) 2022 The Stdlib Authors.
Copyright (c) 2024 The Stdlib Authors.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Copyright (c) 2024 The Stdlib Authors.
Copyright (c) 2022 The Stdlib Authors.

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

Choose a reason for hiding this comment

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

Suggested change
* Copyright (c) 2022 The Stdlib Authors.
* Copyright (c) 2024 The Stdlib Authors.

t.end();
});

tape( 'the function computes the inverse (arc) secant on the interval `[1e300,1e308]`', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tape( 'the function computes the inverse (arc) secant on the interval `[1e300,1e308]`', function test( t ) {
tape( 'the function computes the inverse (arc) secant on the interval `[1e300,1e308]`', opts, function test( t ) {

t.end();
});

tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {

t.end();
});

tape( 'the function returns `NaN` if provided `+0`', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tape( 'the function returns `NaN` if provided `+0`', function test( t ) {
tape( 'the function returns `NaN` if provided `+0`', opts, function test( t ) {

t.end();
});

tape( 'the function returns `NaN` if provided `-0`', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tape( 'the function returns `NaN` if provided `-0`', function test( t ) {
tape( 'the function returns `NaN` if provided `-0`', opts, function test( t ) {

t.end();
});

tape( 'the function returns `NaN` on the interval `(-1, 1)`', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tape( 'the function returns `NaN` on the interval `(-1, 1)`', function test( t ) {
tape( 'the function returns `NaN` on the interval `(-1, 1)`', opts, function test( t ) {

@Pranavchiku Pranavchiku added Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality. C Issue involves or relates to C. Needs Changes Pull request which needs changes before being merged. labels Mar 6, 2024
@Rejoan-Sardar
Copy link
Contributor Author

Rejoan-Sardar commented Mar 6, 2024

@Pranavchiku I have addressed all the issues you mentioned in your review. Please take a look at the changes

@Rejoan-Sardar
Copy link
Contributor Author

Requested changes, once addressed this can be ready.

@Pranavchiku I have addressed all the issues you mentioned in your review.please check.

Co-authored-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Copy link
Member

@Planeshifter Planeshifter left a comment

Choose a reason for hiding this comment

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

Looks good; let's get this in! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Issue involves or relates to C. Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality. Needs Changes Pull request which needs changes before being merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: Add C implementation for @stdlib/math/base/special/asec
3 participants