Stan Math Library
4.9.0
Automatic Differentiation
|
|
inlinenoexcept |
Construct a variable implementation from a value.
The adjoint is initialized to zero.
All constructed variables are added to the stack. Variables should be constructed before variables on which they depend to insure proper partial derivative propagation. During derivative propagation, the chain() method of each variable will be called in the reverse order of construction.
S | a floating point type. |
x | Value of the constructed variable. |