MCPcopy 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

testNormMethod · 0.80
uint32_to_float32Function · 0.80
test_shuffleMethod · 0.80
test_shuffleMethod · 0.80
test_permutedMethod · 0.80
test_shuffleMethod · 0.80
__new__Method · 0.80
test_array_astypeFunction · 0.80
test_instance_methodsMethod · 0.80
_to_bytes_or_str_arrayFunction · 0.80
arrayFunction · 0.80
_format_non_natMethod · 0.80

Calls 1

_rcMethod · 0.95

Tested by 15

testNormMethod · 0.64
uint32_to_float32Function · 0.64
test_shuffleMethod · 0.64
test_shuffleMethod · 0.64
test_permutedMethod · 0.64
test_shuffleMethod · 0.64
test_array_astypeFunction · 0.64
test_instance_methodsMethod · 0.64
test_union_structMethod · 0.64