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

◆ check_symmetric() [1/2]

template<typename T , typename = require_arithmetic_t<T>>
void stan::math::check_symmetric ( const char *  function,
const char *  name,
const matrix_cl< T > &  y 
)
inline

Check if the matrix_cl is symmetric.

Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
ymatrix_cl to test
Exceptions
<code>std::domain_error</code>if the matrix is not symmetric.

Definition at line 27 of file check_symmetric.hpp.