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

◆ minus()

template<typename T , require_not_std_vector_t< T > * = nullptr>
auto stan::math::minus ( T &&  x)
inline

Returns the negation of the specified scalar or matrix.

Return the negation of the each element of a vector.

Template Parameters
TType of subtrahend.
Parameters
xSubtrahend.
Returns
Negation of subtrahend.
Template Parameters
TType of container.
Parameters
xContainer.
Returns
Container where each element is negated.

Definition at line 18 of file minus.hpp.