[RFC]: Add C implementation for @stdlib/math/base/special/fibonacci-index
#1756
Labels
Accepted
RFC feature request which has been accepted.
C
Issue involves or relates to C.
difficulty: 2
May require some initial design or R&D, but should be straightforward to resolve and/or implement.
Feature
Issue or pull request for adding a new feature.
Good First Issue
A good first issue for new contributors!
Math
Issue or pull request specific to math functionality.
priority: Normal
Normal priority concern or feature request.
RFC
Request for comments. Feature requests and proposed changes.
Uh oh!
There was an error while loading. Please reload this page.
Description
This RFC proposes adding native C implementation for
@stdlib/math/base/special/fibonacci-index
.Related Issues
Tracked in issue #649.
Questions
I am not sure about the method's signature. In the original JavaScript code, both the return type and the parameter are {NonNegativeInteger}. However, in some tests they take on the value NaN, which as far as I know does not exist for integer types in C. For this reason, I decided on using double, but please tell me if there is a more suitable solution.
Other
The implementation depends on the
round
function, which is addressed in #735. I can use the round method from C until the method is implemented in stdlib, and I can also contribute to implementinground
.Checklist
RFC:
.The text was updated successfully, but these errors were encountered: