Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ adjoint_of() [2/2]

template<typename T , require_not_var_t< T > * = nullptr>
internal::nonexisting_adjoint stan::math::adjoint_of ( const T &  x)

Returns a reference to a variable's adjoint.

If the input object is not var, it does not have an adjoint and this returns a dummy object. It defines operators += and -=, but they should not actually be called.

Parameters
xany non-var object
Returns
a dummy adjoint

Definition at line 50 of file adjoint_of.hpp.