Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ astype
Method
astype
numpy/lib/user_array.py:238–240 ·
view source on GitHub ↗
(self, typecode)
Source
from the content-addressed store, hash-verified
236
return
self._rc(self.array.byteswap())
237
238
def
astype(self, typecode):
239
""
240
return
self._rc(self.array.astype(typecode))
241
242
def
_rc(self, a):
243
if
len(shape(a)) == 0:
Callers
15
testNorm
Method · 0.80
uint32_to_float32
Function · 0.80
test_shuffle
Method · 0.80
test_shuffle
Method · 0.80
test_permuted
Method · 0.80
test_shuffle
Method · 0.80
__new__
Method · 0.80
test_array_astype
Function · 0.80
test_instance_methods
Method · 0.80
_to_bytes_or_str_array
Function · 0.80
array
Function · 0.80
_format_non_nat
Method · 0.80
Calls
1
_rc
Method · 0.95
Tested by
15
testNorm
Method · 0.64
uint32_to_float32
Function · 0.64
test_shuffle
Method · 0.64
test_shuffle
Method · 0.64
test_permuted
Method · 0.64
test_shuffle
Method · 0.64
test_array_astype
Function · 0.64
test_instance_methods
Method · 0.64
test_union_struct
Method · 0.64
test_subarray_cast_copies
Method · 0.64
test_base_dtype_with_object_type
Method · 0.64
test_empty_string_to_object
Method · 0.64