MCPcopy
hub / github.com/numpy/numpy / test_frompyfunc_endian

Method test_frompyfunc_endian

numpy/_core/tests/test_regression.py:771–778  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

769 np.array_str(s) # Should succeed
770
771 def test_frompyfunc_endian(self):
772 # Ticket #503
773 from math import radians
774 uradians = np.frompyfunc(radians, 1, 1)
775 big_endian = np.array([83.4, 83.5], dtype='>f8')
776 little_endian = np.array([83.4, 83.5], dtype='<f8')
777 assert_almost_equal(uradians(big_endian).astype(float),
778 uradians(little_endian).astype(float))
779
780 def test_mem_string_arr(self):
781 # Ticket #514

Callers

nothing calls this directly

Calls 2

assert_almost_equalFunction · 0.90
astypeMethod · 0.80

Tested by

no test coverage detected