Stan Math Library
4.9.0
Automatic Differentiation
|
|
inlineexplicit |
Construct a matrix_cl 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 matrix_cl or kernel generator expression type that is convertible to T |
x | Value of the constructed variable. |