Loading [MathJax]/extensions/TeX/AMSsymbols.js
Stan Math Library
5.0.0
Automatic Differentiation
▼
Stan Math Library
Overview
▼
Contributor Guides
Developer Guide
Adding New Functions
Adding New Distributions
Common Pitfalls
Using requires for general overloads
Reverse Mode Types
Testing Automatic Differentiation Functions
Testing New Distributions
Add New Functions With Known Gradients
Adding New OpenCL Functions
Windows Development Tips
►
Internal Docs
►
Parallelism
(External Link) Stan Language Docs
(External Link) Stan Discourse
►
Stan Math Library Docs
►
Class List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
ad_promotable.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_META_AD_PROMOTABLE_HPP
2
#define STAN_MATH_PRIM_META_AD_PROMOTABLE_HPP
3
4
#include <
stan/math/prim/meta/bool_constant.hpp
>
5
#include <type_traits>
6
7
namespace
stan
{
8
namespace
math {
9
18
template
<
typename
From,
typename
To,
typename
=
void
>
19
struct
ad_promotable
20
:
bool_constant
<
21
std::is_convertible<std::decay_t<From>, std::decay_t<To>>::value> {};
22
23
}
// namespace math
24
}
// namespace stan
25
#endif
bool_constant.hpp
bool_constant
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
stan::math::ad_promotable
If the type From can be converted to To using implicit conversions, or both From and To are possibly ...
Definition
ad_promotable.hpp:21
stan
math
prim
meta
ad_promotable.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.