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

◆ i_times()

template<typename T >
std::complex< T > stan::math::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 a 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 20 of file i_times.hpp.