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

◆ sign() [1/2]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
auto stan::math::sign ( const T &  x)
inline

Returns signs of the arguments.

Return the elementwise application of sign() to specified argument container.

Template Parameters
Ttype of the argument (matrix_cl or kernel generator expression)
Parameters
xthe argument
Returns
sign of x
Template Parameters
Ttype of container
Parameters
xcontainer
Returns
Elementwise sign of members of container.

Definition at line 18 of file sign.hpp.