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 axis is supported only with default value 0.

See also

dpnp.logspace

Similar to geomspace, but with endpoints specified using log and base.

dpnp.linspace

Similar to geomspace, but with arithmetic instead of geometric progression.

dpnp.arange

Similar 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]