::exp vs. std::exp and friends?

38 views
Skip to first unread message

Bob Carpenter

unread,
Dec 12, 2014, 5:27:49 PM12/12/14
to stan...@googlegroups.com
We've got a lot of variation in our underlying code around which
versions of cmath to use. There are two versions in the C++ libs:

Top-level lib ::exp
Standard lib: std::exp

I'm pretty sure from searching around that they're the same function,
just in two namespaces.

Does anyone have a preference for which one we use? If not, I'd
suggest std::exp, because it's the more C++-like way to do it. The
top-level namespace looks like it's just there for C compatibility.

- Bob

Michael Betancourt

unread,
Dec 12, 2014, 5:46:36 PM12/12/14
to stan...@googlegroups.com
I like the more-explicit std:: version.
> --
> You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rob Trangucci

unread,
Dec 12, 2014, 5:47:36 PM12/12/14
to stan...@googlegroups.com
Ditto, I also like the std:: version.


Rob
Reply all
Reply to author
Forward
0 new messages