def test_min(self): src = np.asarray([1, 1, 1, 2, 2, 5, 5, 10]) Assert.all_eq(spartan.min(spartan.from_numpy(src)).glom(), np.min(src)) src = np.arange(100).reshape(10, 10) Assert.all_eq( spartan.min(spartan.from_numpy(src), axis=1).glom(), np.min(src, axis=1))
def test_min(self): src = np.asarray([1, 1, 1, 2, 2, 5, 5, 10]) Assert.all_eq( spartan.min(spartan.from_numpy(src)).glom(), np.min(src)) src = np.arange(100).reshape(10, 10) Assert.all_eq( spartan.min(spartan.from_numpy(src), axis=1).glom(), np.min(src, axis=1))
def test_min(self): src = np.asarray([1, 1, 1, 2, 2, 5, 5, 10]) Assert.all_eq( spartan.min(spartan.from_numpy(src)).glom(), np.min(src))