Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_minus.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_CORE_OPERATOR_MINUS_HPP
2#define STAN_MATH_PRIM_CORE_OPERATOR_MINUS_HPP
3
5#include <complex>
6
7namespace stan {
8namespace math {
9
17template <typename U, require_autodiff_t<U>>
18inline std::complex<U> operator-(const std::complex<U>& x) {
19 return {-x.real(), -x.imag()};
20}
21
22} // namespace math
23} // namespace stan
24
25#endif
fvar< T > operator-(const fvar< T > &x1, const fvar< T > &x2)
Return the difference of the specified arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...