Skip to content

Commit c8c9130

Browse files
committed
add back is_autodiff type trait
1 parent 3d9a6c4 commit c8c9130

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

stan/math/prim/meta/is_autodiff.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ struct is_autodiff<T, require_eigen_t<T>>
4848

4949
} // namespace internal
5050

51+
/**
52+
* Checks if decayed @ref scalar_type_t is a var or fvar
53+
* @tparam The type to check
54+
* @ingroup type_trait
55+
*/
56+
template <typename T, typename = void>
57+
struct is_autodiff : internal::is_autodiff<T> {};
58+
5159
template <typename T>
5260
inline constexpr bool is_autodiff_v = internal::is_autodiff<T>::value;
5361

0 commit comments

Comments
 (0)