1#ifndef STAN_MATH_PRIM_CORE_OPERATOR_NOT_EQUAL_HPP
2#define STAN_MATH_PRIM_CORE_OPERATOR_NOT_EQUAL_HPP
20template <
typename U,
typename V,
21 typename = require_any_autodiff_scalar_t<U, V>>
22inline bool operator!=(
const std::complex<U>& x,
const std::complex<V>& y) {
23 return !(x.real() == y.real() && x.imag() == y.imag());
37template <
typename U,
typename V,
39inline bool operator!=(
const std::complex<U>& x,
const V& y) {
40 return !(x.real() == y && x.imag() == 0);
54template <
typename U,
typename V,
56inline bool operator!=(
const U& x,
const std::complex<V>& y) {
57 return !(x == y.real() && 0 == y.imag());
require_any_t< is_autodiff_scalar< std::decay_t< Types > >... > require_any_autodiff_scalar_t
Require any of the types satisfy is_autodiff_scalar.
bool operator!=(const fvar< T > &x, const fvar< T > &y)
Return true if the value of the two arguments are not equal as defined by !=.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...