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

◆ check_mat_not_size_one()

template<typename T >
void stan::math::check_mat_not_size_one ( const char *  function,
const char *  name,
const matrix_cl< T > &  A 
)
inline

Check if the matrix_cl has a single element.

Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
Amatrix_cl to test
Exceptions
<code>std::domain_error</code>if the matrix_cl size is not 1

Definition at line 23 of file check_mat_size_one.hpp.