![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
Determines a return type for a function that accepts given inputs and wants to return a matrix (or vector or row vector) with given compile time number of rows and columns.
Returns var_value if any of the inputs are var_value, otherwise an Eigen matrix of var or double.
| Rows | number of compile time rows |
| Cols | number of compile time columns |
| Inputs | types of arguments the function accepts |
Definition at line 22 of file rev_matrix_type.hpp.
#include <rev_matrix_type.hpp>
Public Types | |
| using | type = 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 > > |