Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ log() [6/8]

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

Return the elementwise natural log of the specified argument, which may be a scalar or any Stan container of numeric scalars.

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

The return type is the same as the argument type.

Template Parameters
Containertype of container
Parameters
[in]xcontainer
Returns
Elementwise application of natural log to the argument.
Template Parameters
ContainerType of x
Parameters
xContainer
Returns
Natural log of each variable in the container.

Definition at line 70 of file log.hpp.