MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / test_sum

Method test_sum

tests/python/test_kernel.py:112–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110
111class TestReduce:
112 def test_sum(self) -> None:
113 buf = rt.asarray(np.arange(100, dtype=np.float64))
114 total = rt.go(kernel.sum(buf)).result().scalar()
115 assert total == 4950.0
116
117 def test_mean(self) -> None:
118 buf = rt.asarray(np.arange(100, dtype=np.float64))

Callers

nothing calls this directly

Calls 5

scalarMethod · 0.80
asarrayMethod · 0.45
resultMethod · 0.45
goMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected