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

◆ neg_i_times()

template<typename T >
std::complex< T > stan::math::neg_i_times ( const std::complex< T > &  z)
inline

Return the specified complex number multiplied by -i.

This compound function is more efficient than mulitplying by the constant -i because it involves only a single arithmetic negation.

Template Parameters
valuetype of complex argument
Parameters
[in]zcomplex argument
Returns
argument multipled by -i

Definition at line 36 of file i_times.hpp.