Skip to content

Add support for endpoint in linspace's  #3673

@jakirkham

Description

@jakirkham

With NumPy, one can use np.linspace's endpoint like below. Currently da.linspace does support the first syntax, but doesn't support the second. Would be good for it to support both options.

In [1]: np.linspace(0, 1, 4)
Out[1]: array([0.        , 0.33333333, 0.66666667, 1.        ])

In [2]: np.linspace(0, 1, 3, endpoint=False)
Out[2]: array([0.        , 0.33333333, 0.66666667])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions