Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_plus.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_CORE_OPERATOR_PLUS_HPP
2#define STAN_MATH_PRIM_CORE_OPERATOR_PLUS_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;
20}
21
22} // namespace math
23} // namespace stan
24
25#endif
fvar< T > operator+(const fvar< T > &x1, const fvar< T > &x2)
Return the sum of the specified forward mode addends.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...