as_type#
Cast an operator to an arbitrary type
-
template<typename NewType, typename T>
auto __MATX_INLINE__ matx::as_type(T t)# Helper function to cast an input operator to a different type.
- Template Parameters:
T – Input type
NewType – Casted type
- Parameters:
t – Input operator
- Returns:
Operator output casted to NewType
Examples#
(to = as_type<int8_t>(t + t2)).run(exec);