Opened 14 years ago
Closed 13 years ago
#421 closed request (fixed)
functor check for nan
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | minor | Milestone: | yat 0.5 |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description
a functor that return 0.0 if input is nan and 1.0 otherwise.
This can be used to calculate the corresponding weight of a number (or a whole range of numbers). See for example nan(const Matrix&, Matrix&) that could be implemented using this functor together with std::transform.
What to call such a functor? It is inspired by the function nan in Matrix, but I'm not sure nan is the best name.
Change History (2)
comment:1 Changed 13 years ago by
Milestone: | yat 0.x+ → yat 0.5 |
---|---|
Owner: | changed from Jari Häkkinen to Peter |
Status: | new → assigned |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [1786]) fixes #421