Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ logit() [5/6]

template<typename Container , require_ad_container_t< Container > * = nullptr>
auto stan::math::logit ( const Container &  x)
inline

Return the elementwise application of logit() to specified argument container.

Version of logit() that accepts std::vectors, Eigen Matrix/Array objects or expressions, and containers of these.

The return type promotes the underlying scalar argument type to double if it is an integer, and otherwise is the argument type.

Template Parameters
Containertype of container
Parameters
xcontainer
Returns
elementwise logit of container elements
Template Parameters
ContainerType of x
Parameters
xContainer
Returns
the logit of each variable in the container.

Note: The return must be evaluated otherwise the Ref object falls out of scope

Definition at line 90 of file logit.hpp.