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

◆ check_cl()

template<typename T , typename = require_all_kernel_expressions_t<T>>
auto stan::math::check_cl ( const char *  function,
const char *  var_name,
T &&  y,
const char *  must_be 
)
inline

Constructs a check on opencl matrix or expression.

When assigned a boolean expression it throws a std::domain_error if any value of the expression result is false.

Template Parameters
Ttype of the expression to check
Parameters
functionfunction name (for error messages)
var_namevariable name (for error messages)
yvariable to check (for error messages)
must_bedescription of what the value must be (for error messages)

Definition at line 219 of file check_cl.hpp.