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

◆ check_vector()

template<typename Mat , require_any_t< is_matrix< Mat >, is_prim_or_rev_kernel_expression< Mat > > * = nullptr>
void stan::math::check_vector ( const char *  function,
const char *  name,
const Mat &  x 
)
inline

Check the input is either a row vector or column vector or a matrix with a single row or column.

Template Parameters
MatInput type
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
xInput
Exceptions
<code>std::invalid_argument</code>if x is not a row or column vector.

Definition at line 32 of file check_vector.hpp.