set_order_convert#
- rateslib.dual.set_order_convert(val, order, tag, vars_from=None)#
Convert a float,
Dual
orDual2
type to a specified alternate type with tagged variables.- Parameters:
- Return type:
Notes
This function is used for AD variable management.
tag
andvars_from
are only used when floats are upcast and the variables need to be specifically define.