Stan Math Library
4.9.0
Automatic Differentiation
|
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/core/typedefs.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/typedefs.hpp>
#include <stan/math/prim/fun/variance.hpp>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | stan |
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
namespace | stan::math |
Matrices and templated mathematical functions. | |
namespace | stan::math::internal |
A comparator that works for any container type that has the brackets operator. | |
Functions | |
var | stan::math::internal::calc_variance (size_t size, const var *dtrs) |
var | stan::math::variance (const std::vector< var > &v) |
Return the sample variance of the specified standard vector. | |
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. | |
template<typename Mat , require_var_matrix_t< Mat > * = nullptr> | |
var | stan::math::variance (const Mat &x) |
Return the sample variance of the var_value matrix Raise domain error if size is not greater than zero. | |