Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Assume which type we get.
If actual type is convertible to assumed type or in case of eigen types compile time rows and columns also match or desired sizes are dynamic this is a no-op. Otherwise it throws std::runtime_error, which should never happen if used as intended.
This is intended to be used in compile time branches that would otherwise trigger compile error even though they are never executed.
T_desired | type of output we need to avoid compile time errors |
T_actual | actual type of the argument |
a | input value |
Definition at line 91 of file forward_as.hpp.