MCPcopy Index your code
hub / github.com/numpy/numpy / test_large_integers

Method test_large_integers

numpy/lib/tests/test_histograms.py:809–819  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

807 assert_equal(edges[1].dtype, y_edges.dtype)
808
809 def test_large_integers(self):
810 big = 2**60 # Too large to represent with a full precision float
811
812 x = np.array([0], np.int64)
813 x_edges = np.array([-1, +1], np.int64)
814 y = big + x
815 y_edges = big + x_edges
816
817 hist, edges = histogramdd((x, y), bins=(x_edges, y_edges))
818
819 assert_equal(hist[0, 0], 1)
820
821 def test_density_non_uniform_2d(self):
822 # Defines the following grid:

Callers

nothing calls this directly

Calls 2

histogramddFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected