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

◆ as_operation_cl_t

template<typename T , assign_op_cl AssignOp = assign_op_cl::equals>
using stan::math::as_operation_cl_t = typedef std::conditional_t<std::is_lvalue_reference<T>::value, decltype(as_operation_cl<AssignOp>(std::declval<T>())), std::remove_reference_t<decltype( as_operation_cl<AssignOp>(std::declval<T>()))> >

Type that results when converting any valid kernel generator expression into operation.

If a function accepts a forwarding reference T&& a, the result of as_operation_cl(a) should be stored in a variable of type as_operation_cl_t<T>. If the return value of as_operation_cl() would be a rvalue reference, the reference is removed, so that a variable of this type actually stores the value.

Template Parameters
Ta matrix_cl or Scalar type
AssignOpan optional assign_op_cl that dictates whether the object is assigned using standard or compound assign.

Definition at line 91 of file as_operation_cl.hpp.