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

◆ vari_cl_base()

template<typename T >
template<typename S , typename U , require_t< std::is_constructible< T, std::decay_t< S > > > * = nullptr, require_t< std::is_constructible< T, std::decay_t< U > > > * = nullptr>
stan::math::vari_cl_base< T >::vari_cl_base ( S &&  val,
U &&  adj 
)
inline

Construct a matrix_cl variable implementation from a value and adjoint.

This constructor does not add the matrix to any stack! It is intended only for views into matrices already on stack.

Parameters
valValue of the constructed variable.
adjAdjoint of the constructed variable.

Definition at line 40 of file vari.hpp.