1#ifndef STAN_MATH_PRIM_SCAL_FUN_I_TIMES_HPP
2#define STAN_MATH_PRIM_SCAL_FUN_I_TIMES_HPP
20inline std::complex<T>
i_times(
const std::complex<T>& z) {
21 return {-z.imag(), z.real()};
37 return {z.imag(), -z.real()};
49 return {-z.real(), -z.imag()};
std::complex< T > i_times(const std::complex< T > &z)
Return the specified complex number multiplied by i.
std::complex< T > neg_i_times(const std::complex< T > &z)
Return the specified complex number multiplied by -i.
std::complex< V > complex_negate(const std::complex< V > &z)
Return the complex negation of the specified complex argument.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...