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

◆ set_view()

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

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

Setting view to diagonal never changes view of the underlying matrix.

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 100 of file diagonal.hpp.