Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::rev_matrix_type< Rows, Cols, Inputs > Struct Template Reference

Detailed Description

template<int Rows, int Cols, typename... Inputs>
struct stan::rev_matrix_type< Rows, Cols, Inputs >

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.

Template Parameters
Rowsnumber of compile time rows
Colsnumber of compile time columns
Inputstypes 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 > >
 

The documentation for this struct was generated from the following file: