Converts a scalar U u
to its corresponding scalar T t
.
When U == T, the scalar is unchanged. When demoting Expression to non-Expression, throws when there are unbound variables. In all other cases, information beyond the double value (e.g., possible derivatives) might be discarded.
#include <drake/systems/framework/scalar_conversion_traits.h>
Public Member Functions | |
T | operator() (const U &u) const |
T operator() | ( | const U & | u | ) | const |