Automatic Differentiation
 
Loading...
Searching...
No Matches
std_iterator_traits.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_CORE_STD_ITERATOR_TRAITS_HPP
2#define STAN_MATH_FWD_CORE_STD_ITERATOR_TRAITS_HPP
3
6#include <iterator>
7
8namespace std {
13template <typename T>
14struct iterator_traits<stan::math::fvar<T>> {
18 typedef random_access_iterator_tag iterator_category;
19
23 typedef ptrdiff_t difference_type;
24
29
34
39};
40} // namespace std
41
42#endif
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
STL namespace.
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40
stan::math::fvar< T > & reference
Type of reference to variables.
ptrdiff_t difference_type
Type for difference between pointers.
random_access_iterator_tag iterator_category
Iterator category for traits.
stan::math::fvar< T > value_type
Type for value of pointer to values.
stan::math::fvar< T > * pointer
Type of pointer to variables.