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

◆ is_column_index()

template<typename EigMat , require_eigen_t< EigMat > * = nullptr>
bool stan::math::is_column_index ( const EigMat &  y,
size_t  i 
)
inline

Return true if column index is in bounds.

By default this is a 1-indexed check (as opposed to zero-indexed). Behavior can be changed by setting stan::error_index::value.

Template Parameters
EigMatA type derived from EigenBase
Parameters
ymatrix to test
icolumn index to check
Returns
true if column index is in bounds

Definition at line 20 of file is_column_index.hpp.