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

Method test_simple_int64_out

numpy/core/tests/test_numeric.py:2007–2016  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2005 assert_array_strict_equal(ac, act)
2006
2007 def test_simple_int64_out(self):
2008 # Test native int32 input with int32 scalar min/max and int64 out.
2009 a = self._generate_int32_data(self.nr, self.nc)
2010 m = np.int32(-1)
2011 M = np.int32(1)
2012 ac = np.zeros(a.shape, dtype=np.int64)
2013 act = ac.copy()
2014 self.fastclip(a, m, M, ac)
2015 self.clip(a, m, M, act)
2016 assert_array_strict_equal(ac, act)
2017
2018 def test_simple_int64_inout(self):
2019 # Test native int32 input with double array min/max and int32 out.

Callers

nothing calls this directly

Calls 5

_generate_int32_dataMethod · 0.95
fastclipMethod · 0.95
clipMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected