Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_unary_plus.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_REV_OPERATOR_UNARY_PLUS_HPP
2#define STAN_MATH_OPENCL_REV_OPERATOR_UNARY_PLUS_HPP
3#ifdef STAN_OPENCL
4
7
8namespace stan {
9namespace math {
10
17template <typename T,
18 require_var_vt<is_kernel_expression_and_not_scalar, T>* = nullptr>
19inline T operator+(T&& M) {
20 return std::forward<T>(M);
21}
22
23} // namespace math
24} // namespace stan
25
26#endif
27#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 ...