alashworth / test-issue-import

0 stars 0 forks source link

signum function #74

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bob-carpenter Sunday Jul 19, 2015 at 15:42 GMT Originally opened as https://github.com/stan-dev/stan/issues/1556


We need it.

signum(x) = 1 if x > 0
signum(x) = 0 if x = 0
signum(x) = -1 if x < 0