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

◆ check_square()

template<typename T_y , require_any_t< is_matrix< T_y >, is_prim_or_rev_kernel_expression< T_y > > * = nullptr>
void stan::math::check_square ( const char *  function,
const char *  name,
const T_y &  y 
)
inline

Check if the specified matrix is square.

This check allows 0x0 matrices.

Template Parameters
TType of matrix
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
yMatrix to test
Exceptions
<code>std::invalid_argument</code>if the matrix is not square

Definition at line 23 of file check_square.hpp.