dpnp.geomspace
- dpnp.geomspace(start, stop, num=50, endpoint=True, dtype=None, axis=0)[source]
Return numbers spaced evenly on a log scale (a geometric progression).
For full documentation refer to
numpy.geomspace.Limitations
Parameter
axisis supported only with default value0.See also
dpnp.logspaceSimilar to geomspace, but with endpoints specified using log and base.
dpnp.linspaceSimilar to geomspace, but with arithmetic instead of geometric progression.
dpnp.arangeSimilar to linspace, with the step size specified instead of the number of samples.
Examples
>>> import dpnp as np >>> x = np.geomspace(1, 1000, num=4) >>> [i for i in x] [1.0, 10.0, 100.0, 1000.0] >>> x2 = np.geomspace(1, 1000, num=4, endpoint=False) >>> [i for i in x2] [1.0, 5.62341325, 31.6227766, 177.827941]