Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the square of the specified argument.
\(\mbox{square}(x) = x^2\).
The implementation of square(x)
is just x * x
. Given this, this method is mainly useful in cases where x
is not a simple primitive type, particularly when it is an autodiff type.
x | Input to square. |
Definition at line 26 of file square.hpp.