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

◆ variance() [6/7]

template<typename EigMat , require_eigen_vt< is_var, EigMat > * = nullptr>
var stan::math::variance ( const EigMat &  m)

Return the sample variance of the specified vector, row vector, or matrix.

Raise domain error if size is not greater than zero.

Template Parameters
EigMattype inheriting from EigenBase that has a var scalar type.
Parameters
[in]minput matrix
Returns
sample variance of specified matrix

Definition at line 61 of file variance.hpp.