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

◆ check_triangular()

template<typename T , require_matrix_cl_t< T > * = nullptr>
void stan::math::check_triangular ( const char *  function,
const char *  name,
const T &  A 
)
inline

Check if the matrix_cl is either upper triangular or lower triangular.

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

Definition at line 23 of file check_triangular.hpp.