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

◆ inv() [4/6]

template<typename T , require_not_container_st< std::is_arithmetic, T > * = nullptr, require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T > * = nullptr>
auto stan::math::inv ( const T &  x)
inline

Return the elementwise 1.0 / x of the specified argument, which may be a scalar or any Stan container of numeric scalars.

Template Parameters
Containertype of container
Parameters
xcontainer
Returns
1 divided by each value in x.

Definition at line 37 of file inv.hpp.