-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[RFC]: add ndarray/base/scalar-dtype #11002
Copy link
Copy link
Labels
AcceptedRFC feature request which has been accepted.RFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.Issue or pull request for adding a new feature.JavaScriptIssue involves or relates to JavaScript.Issue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.
Metadata
Metadata
Assignees
Labels
AcceptedRFC feature request which has been accepted.RFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.Issue or pull request for adding a new feature.JavaScriptIssue involves or relates to JavaScript.Issue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.
Description
This RFC proposes to add
ndarray/base/scalar-dtypethat encapsulates the logic for resolving a default ndarray data type from a scalar value.The scalar-to-dtype resolution logic is currently duplicated across multiple packages (e.g.,
ndarray/base/atleastnd,ndarray/from-scalar) and should be extracted into a dedicated reusable package.Related Issues
ndarray/base/atleastnd/lib/main.jsQuestions
No.
Other
No.
Checklist
RFC:.