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

◆ block() [2/3]

template<typename T , require_all_nonscalar_prim_or_rev_kernel_expression_t< T > * = nullptr, require_any_var_t< T > * = nullptr>
auto stan::math::block ( const T &  m,
size_t  i,
size_t  j,
size_t  nrows,
size_t  ncols 
)
inline

Return a nrows x ncols submatrix starting at (i-1, j-1).

Template Parameters
Ttype of elements in the matrix
Parameters
mMatrix.
iStarting row.
jStarting column.
nrowsNumber of rows in block.
ncolsNumber of columns in block.
Exceptions
std::out_of_rangeif either index is out of range.

Definition at line 27 of file block.hpp.