1#ifndef STAN_MATH_PRIM_CORE_OPERATOR_EQUAL_EQUAL_HPP
2#define STAN_MATH_PRIM_CORE_OPERATOR_EQUAL_EQUAL_HPP
20template <
typename U,
typename V,
typename = require_any_autodiff_t<U, V>>
21inline bool operator==(
const std::complex<U>& x,
const std::complex<V>& y) {
22 return x.real() == y.real() && x.imag() == y.imag();
35template <
typename U,
typename V,
typename = require_any_autodiff_t<U, V>>
36inline bool operator==(
const std::complex<U>& x,
const V& y) {
37 return x.real() == y && x.imag() == 0;
51template <
typename U,
typename V,
typename = require_any_autodiff_t<U, V>>
52inline bool operator==(
const U& x,
const std::complex<V>& y) {
53 return x == y.real() && 0 == y.imag();
bool operator==(const fvar< T > &x, const fvar< T > &y)
Return true if the specified variables have equal values as defined by ==.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...