Stan Math Library
4.9.0
Automatic Differentiation
|
#include <stan/math/prim/meta/bool_constant.hpp>
#include <stan/math/prim/meta/disjunction.hpp>
#include <stan/math/prim/meta/is_autodiff.hpp>
#include <stan/math/prim/meta/is_eigen.hpp>
#include <stan/math/prim/meta/is_vector.hpp>
#include <stan/math/prim/meta/is_var_matrix.hpp>
#include <stan/math/prim/meta/base_type.hpp>
#include <stan/math/prim/meta/scalar_type.hpp>
#include <stan/math/prim/meta/value_type.hpp>
#include <stan/math/prim/meta/require_helpers.hpp>
#include <type_traits>
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. | |
Typedefs | |
template<typename Container > | |
using | stan::is_container = bool_constant< math::disjunction< is_eigen< Container >, is_std_vector< Container > >::value > |
Deduces whether type is eigen matrix or standard vector. | |
template<typename T > | |
using | stan::require_container_t = require_t< is_container< std::decay_t< T > > > |
Require type satisfies is_container. | |
template<typename T > | |
using | stan::require_not_container_t = require_not_t< is_container< std::decay_t< T > > > |
Require type does not satisfy is_container. | |
template<typename... Types> | |
using | stan::require_all_container_t = require_all_t< is_container< std::decay_t< Types > >... > |
Require all of the types satisfy is_container. | |
template<typename... Types> | |
using | stan::require_any_container_t = require_any_t< is_container< std::decay_t< Types > >... > |
Require any of the types satisfy is_container. | |
template<typename... Types> | |
using | stan::require_all_not_container_t = require_all_not_t< is_container< std::decay_t< Types > >... > |
Require none of the types satisfy is_container. | |
template<template< class... > class TypeCheck, class... Check> | |
using | stan::require_container_st = require_t< container_type_check_base< is_container, scalar_type_t, TypeCheck, Check... > > |
Require type satisfies is_container. | |
template<template< class... > class TypeCheck, class... Check> | |
using | stan::require_container_bt = require_t< container_type_check_base< is_container, base_type_t, TypeCheck, Check... > > |
Require type satisfies is_container. | |
template<template< class... > class TypeCheck, class... Check> | |
using | stan::require_not_container_st = require_not_t< container_type_check_base< is_container, scalar_type_t, TypeCheck, Check... > > |
Require type does not satisfy is_container. | |
template<typename T > | |
using | stan::require_ad_container_t = require_all_t< stan::math::disjunction< is_eigen< T >, is_std_vector< T > >, is_autodiff< base_type_t< T > > > |
Require type satisfies is_container. | |