Automatic Differentiation
 
Loading...
Searching...
No Matches
get_imag.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <complex>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
stan::math::get_imag (const std::complex< T > &z)
 Return the imaginary component of the complex argument.
 
template<typename Eig , require_eigen_vt< is_complex, Eig > * = nullptr>
auto stan::math::get_imag (const Eig &z)
 Return the real component of the complex argument.
 
template<typename StdVec , require_std_vector_st< is_complex, StdVec > * = nullptr>
auto stan::math::get_imag (const StdVec &z)
 Return the real component of the complex argument.