Automatic Differentiation
 
Loading...
Searching...
No Matches
rev_matrix_type.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_META_REV_MATRIX_TYPE_HPP
2#define STAN_MATH_REV_META_REV_MATRIX_TYPE_HPP
3
7
8namespace stan {
9
21template <int Rows, int Cols, typename... Inputs>
23 using type = std::conditional_t<
27 Eigen::Matrix<return_type_t<Inputs...>, Rows, Cols>>;
28};
29
30template <int Rows, int Cols, typename... Inputs>
31using rev_matrix_t = typename rev_matrix_type<Rows, Cols, Inputs...>::type;
32
33} // namespace stan
34
35#endif
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
typename rev_matrix_type< Rows, Cols, Inputs... >::type rev_matrix_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Check if type derives from EigenBase
Definition is_eigen.hpp:21
Defines a static member named value which is defined to be false as the primitive scalar types cannot...
Definition is_var.hpp:14
Extends std::true_type when instantiated with zero or more template parameters, all of which extend t...
Extends std::false_type when instantiated with zero or more template parameters, all of which extend ...
std::conditional_t< math::disjunction< math::conjunction< is_var< Inputs >, is_eigen< value_type_t< Inputs > > >... >::value, math::var_value< Eigen::Matrix< double, Rows, Cols > >, Eigen::Matrix< return_type_t< Inputs... >, Rows, Cols > > type
Determines a return type for a function that accepts given inputs and wants to return a matrix (or ve...