astype#
- rbc.stdlib.data_type_functions.astype(x, dtype, copy=True)#
Copies an array to a specified data type irrespective of Type Promotion Rules rules.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('bool[](int64[])') ... def astype(x): ... return array_api.astype(x, array_api.bool) >>> astype([1, 0, 3]).execute() array([ True, False, True])