-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Needs DiscussionNeeds further discussion.Needs further discussion.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
Description
In ndarray/array/lib/copy_view.js, the copyView function manually creates an output buffer, constructs a plain ndarray-like
object, and uses ndarray/base/assign to copy data.
The function contains the following TODO comment:
function copyView( arr, dtype ) { // TODO: consider replacing with `@stdlib/ndarray[/base]/copy` once createdNow that ndarray/copy exists, the manual logic can be replaced by importing ndarray/copy, removing the following unnecessary imports:
@stdlib/ndarray/base/assert/is-equal-data-type@stdlib/buffer/alloc-unsafe@stdlib/ndarray/base/buffer-ctors@stdlib/ndarray/order@stdlib/ndarray/base/numel@stdlib/ndarray/base/shape2strides@stdlib/ndarray/base/assign@stdlib/array/base/zeros
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs DiscussionNeeds further discussion.Needs further discussion.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.