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

◆ block() [1/3]

template<typename T_x , typename = require_all_kernel_expressions_and_none_scalar_t<T_x>>
auto stan::math::block ( T_x &&  x,
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
xMatrix.
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 24 of file block.hpp.