Skip to content

Using linspace in pad's linear_ramp mode  #12293

Open

Description

@jakirkham

In NumPy's pad, it appears to be organically constructing the linear ramps with arange and some floating point arithmetic. Maybe it would be better to use linspace, which is a closer match to the linear ramp use case. In particular, see the _prepend_ramp and _append_ramp helper functions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions