Automatic Differentiation
 
Loading...
Searching...
No Matches
square.hpp File Reference

Go to the source code of this file.

Classes

struct  stan::math::square_fun
 Structure to wrap square() so that it can be vectorized. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T , require_arithmetic_t< T > * = nullptr>
double stan::math::square (const T x)
 Return the square of the specified argument.
 
template<typename Container , require_ad_container_t< Container > * = nullptr>
auto stan::math::square (const Container &x)
 Vectorized version of square().