Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Assume which type we get.
If actual type is not convertible to assumed type or in case of eigen types compile time rows and columns are not the same and desired sizes are not dynamic this has return type of T_desired
, but it only throws. This version should only be used where it is optimized away so the throw should never happen.
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 |
always | throws std::runtime_error |
Definition at line 122 of file forward_as.hpp.