Hi all, We've created a PR (#14922 <https://github.com/numpy/numpy/pull/14922>) on adding keepdims to linspace / logspace / geomspace, which enables linspace to directly take the output of min and max with keepdims = True as the start and stop arguments. That is, the following two linspace calls return the same result.
np.linspace( arr.min(axis=ax), arr.max(axis=ax), axis=ax ) np.linspace( arr.min(axis=ax, keepdims=True), arr.max(axis=ax, keepdims=True), axis=ax, keepdims=True ) Please let me know if you have any questions / suggestions. Regards, ZJ
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion