MCPcopy Create free account
hub / github.com/ml-explore/mlx / test_linspace

Method test_linspace

python/tests/test_double.py:299–302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self.assertEqual(b, [1.0, 2.0])
298
299 def test_linspace(self):
300 with mx.stream(mx.cpu):
301 vals = mx.linspace(0, math.pi, 2, mx.float64)
302 self.assertEqual(vals.tolist()[1], math.pi)
303
304
305if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected