[RFC]: add C implementation for `math/base/special/heaviside`
Description
This RFC proposes adding C implementation for math/base/special/heaviside.
double stdlib_base_heaviside( const double x, const string continuity )
Related Issues
Related issues #649.
Questions
No.
Other
No.
Checklist
- [X] I have read and understood the Code of Conduct.
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with
RFC:.
I would like to work on this. Also, for this, what type of interface must be used in addon.c ?
The C interface should use an enum for the continuity, not a string. The enum should be defined in the heaviside header file. When going from JavaScript to C for testing, we would need to convert the JavaScript string to the corresponding enum value. Hence, the addon.c file should just use the DI_D interface.
@gunjjoshi, Noticed this issue has been open for a while. Would it be alright if I work on it to help move it forward?
@gunjjoshi, Noticed this issue has been open for a while. Would it be alright if I work on it to help move it forward?
Sure, @gururaj1512. Feel free to open a PR for this.
Hi @gunjjoshi , I have linked the PR to this issue like you asked. Can you review when you're free?