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

◆ fill() [4/4]

template<typename VarMat , typename S , require_var_matrix_t< VarMat > * = nullptr, require_var_t< S > * = nullptr>
void stan::math::fill ( VarMat &  x,
const S &  y 
)
inline

Fill the specified container with the specified value.

The specified matrix is filled by element.

Template Parameters
VarMata var_value with inner type from EigenBase
SA var.
Parameters
xContainer.
yValue.

The specified matrix is filled by element.

Template Parameters
VarMata var_value with inner type from EigenBase
SAn arithmetic type.
Parameters
xContainer.
yValue.

Definition at line 25 of file fill.hpp.