MCPcopy Create free account
hub / github.com/numpy/numpy / _generate_non_native_data

Method _generate_non_native_data

numpy/core/tests/test_numeric.py:1865–1869  ·  view source on GitHub ↗
(self, n, m)

Source from the content-addressed store, hash-verified

1863 return a
1864
1865 def _generate_non_native_data(self, n, m):
1866 data = randn(n, m)
1867 data = self._neg_byteorder(data)
1868 assert_(not data.dtype.isnative)
1869 return data
1870
1871 def _generate_int_data(self, n, m):
1872 return (10 * rand(n, m)).astype(np.int64)

Callers 2

test_simple_nonnativeMethod · 0.95
test_type_cast_11Method · 0.95

Calls 3

_neg_byteorderMethod · 0.95
assert_Function · 0.90
randnFunction · 0.85

Tested by

no test coverage detected