Stan Math Library
4.9.0
Automatic Differentiation
|
|
inlineexplicit |
Construct a dense Eigen 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 dense Eigen type that is convertible to value_type |
x | Value of the constructed variable. |