def array_of_dtype(a, dtype, static_dtype, out): if out is not None: return out a = array_from_type(a) if not a.is_object: dtype = _dtype(a, dtype, static_dtype) if dtype is not None: return a.copy(dtype=dtype)
def array_of_dtype(a, dtype, static_dtype, out): if out is not None: return out a = array_from_type(a) if not a.is_object: dtype = _dtype(a, dtype, static_dtype) if dtype is not None: return a.copy(dtype=dtype)
def array_of_dtype(a, dtype, static_dtype, out): if out is not None: return out a = array_from_type(a) if a.is_array: dtype = _dtype(a, dtype, static_dtype) if dtype is not None: return a.add('dtype', dtype)