Skip to content

[RFC]: Chebyshev distance between two strided arrays  #832

Open
@Planeshifter

Description

@Planeshifter

Description

This RFC proposes adding a function to calculate the Chebyshev distance between two strided arrays.

Package: @stdlib/math/strided/distances/chebyshev

The function should have the following signature chebyshev ( N, x, strideX, y, strideY ).

  • N: Number of elements
  • x: First array
  • strideX: Stride for the first array
  • y: Second array
  • strideY: Stride for the second array

The function should return the Chebyshev distance between the two arrays. The Chebyshev distance is also known as the maximum metric. It is calculated by taking the maximum of the absolute differences between the elements.

See:

Related Issues

None.

Questions

No.

Other

No.

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureIssue or pull request for adding a new feature.Native AddonsIssue involves or relates to Node.js native add-ons.RFCRequest for comments. Feature requests and proposed changes.status: BlockedIssue or pull request which is current blocked.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions