Automatic Differentiation
 
Loading...
Searching...
No Matches
get.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <cmath>
#include <cstddef>
#include <cstdlib>
#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.
 

Functions

template<typename T , typename = require_stan_scalar_t<T>>
stan::get (const T &x, size_t n)
 Returns the provided element.
 
template<typename T >
stan::get (const std::vector< T > &x, size_t n)
 Returns the n-th element of the provided std::vector.
 
template<typename T , typename = require_eigen_t<T>>
scalar_type_t< T > stan::get (const T &m, size_t n)
 Returns the n-th element of the provided Eigen matrix.