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

◆ square() [5/7]

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

Vectorized version of square().

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

Template Parameters
Containertype of container
Parameters
xcontainer
Returns
Each value in x squared.
Template Parameters
ContainerType of x
Parameters
xContainer
Returns
Each value in x squared.

Definition at line 53 of file square.hpp.