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

◆ set_view()

template<typename T >
void stan::math::block_< T >::set_view ( int  bottom_diagonal,
int  top_diagonal,
int  bottom_zero_diagonal,
int  top_zero_diagonal 
) const
inline

Sets view of the underlying matrix depending on which part is written.

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 273 of file block_zero_based.hpp.