Skip to content

elementwise versions of unary functions #347

Description

@bob-carpenter

Summary:

There are functions like log2() and log1p() that are still not vectorized for elementwise application to containers.

Description:

All of our unary functions should be vectorized. Review the index of the manual and make sure every unary function is vectorized. Here are the ones for this issue:

  • acosh
  • asinh
  • atanh
  • exp2
  • log1m_inv_logit
  • log1p
  • log2
  • log_inv_logit
  • logit
  • Phi_approx
  • trigamma
  • trunc

Current Version:

v2.11.0

Activity

  1. added this to the milestone on Aug 14, 2016
  2. bob-carpenter commented on Aug 18, 2016

    @bob-carpenter
    MemberAuthor

    See #202, which was only partially completed.

  3. bob-carpenter commented on Aug 18, 2016

    @bob-carpenter
    MemberAuthor

    See also #272 for logit() and #271 for log1m_inv_logit

  4. modified the milestones: Future, , on Aug 18, 2016
  5. bob-carpenter commented on Aug 28, 2016

    @bob-carpenter
    MemberAuthor

    This was blocked before due to ambiguous functions. It's fixed with a judicious application of namespace qualifications and Boost enable_if and disable_if qualifications. Now that I have log1p working I should be able to knock off the rest in no time. It will not require reverse-mode specializations as suggested in #272 and #271 (now closed).

  6. modified the milestones: , on Aug 28, 2016
  7. changed the title [-]vectorizing remaining unary functions[/-] [+]elementwise versions of unary functions[/+] on Aug 29, 2016
  8. modified the milestones: , on Sep 7, 2016
  9. MatsuuraKentaro commented on Oct 18, 2017

    @MatsuuraKentaro

    Stan manual v2.17 says pow is not vectorized yet. Do you have a plan?

  10. bob-carpenter commented on Oct 19, 2017

    @bob-carpenter
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions