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

◆ block() [3/3]

template<typename T , require_matrix_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 22 of file block.hpp.