Skip to content

[RFC]: Move from_arraybuffer.js into @stdlib/ndarray/from-arraybuffer #14965

Description

@0PrashantYadav0

Description

This RFC proposes acting on the TODO in lib/from_arraybuffer.js, which notes the helper should move to @stdlib/ndarray/from-arraybuffer.

The file is dimension-agnostic and is copied verbatim into each dimensional ctor package. There are three copies today, in vector/ctor, matrix/ctor, and tensor3d/ctor. Adding tensor4d and tensor5d would make five.

Separate work on @stdlib/ndarray/from-arraybuffer is already under way, which would reclaim all of them at once.

Related Issues

Related issues: Parent

Questions

Should this land before tensor4d starts, so the count stops at three?

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:.

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

    FeatureIssue or pull request for adding a new feature.JavaScriptIssue involves or relates to JavaScript.priority: LowLow priority concern or feature request.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions