Closed
Description
Description
This RFC proposes adding the package @stdlib/math/base/special/nanmax
. If one operand is NaN
, the other operand is always returned; otherwise, perform normal maximum (e.g., by calling @stdlib/math/base/special/max
).
var m = nanmax( 3.0, 4.0 );
// returns 4.0
m = nanmax( NaN, 4.0 );
// returns 4.0
m = nanmax( 3.0, NaN );
// returns 3.0
m = nanmax( NaN, NaN );
// returns NaN
Package: @stdlib/math/base/special/nanmax
Alias: nanmax
Related Issues
None.
Questions
No.
Other
No.
Checklist
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:
.
Metadata
Metadata
Assignees
Labels
RFC feature request which has been accepted.Issue or pull requests related to "low-level" functionality oriented toward library consumers.Issue involves or relates to C.Issue or pull request for adding a new feature.A good first issue for new contributors!Issue involves or relates to JavaScript.Issue or pull request specific to math functionality.Issue involves or relates to Node.js native add-ons.Request for comments. Feature requests and proposed changes.May require some initial design or R&D, but should be straightforward to resolve and/or implement.Normal priority concern or feature request.