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

◆ set_view()

template<typename T , assign_op_cl AssignOp = assign_op_cl::equals>
void stan::math::load_< T, AssignOp >::set_view ( int  bottom_diagonal,
int  top_diagonal,
int  bottom_zero_diagonal,
int  top_zero_diagonal 
) const
inline

Sets the view of the matrix depending on which of its parts are written to.

Parameters
bottom_diagonalIndex of the top sub- or super- diagonal written with nonzero elements.
top_diagonalIndex of the top sub- or super- diagonal written with nonzero elements.
bottom_zero_diagonalIndex of the top sub- or super- diagonal written with zeros if it ie more extreme than bottom_diagonal. Otherwise it should be set to equal value as bottom_diagonal.
top_zero_diagonalIndex of the top sub- or super- diagonal written with zeros if it ie more extreme than top_diagonal. Otherwise it should be set to equal value as top_diagonal.

Definition at line 276 of file load.hpp.