npstreams.multilinspace¶
-
npstreams.
multilinspace
(start, stop, num, endpoint=True)¶ Generate multilinear space, for joining the values in two iterables.
Parameters: Yields: val (tuple) – Tuple of the same length as start and stop
Examples
>>> multispace = multilinspaces(start = (0, 0), stop = (1, 1), num = 4, endpoint = False) >>> print(list(multispace)) [(0, 0), (0.25, 0.25), (0.5, 0.5), (0.75, 0.75)]
See also
linspace()
- generate a linear space between two numbers