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
Description
This RFC proposes acting on the
TODOinlib/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
ctorpackage. There are three copies today, invector/ctor,matrix/ctor, andtensor3d/ctor. Addingtensor4dandtensor5dwould make five.Separate work on
@stdlib/ndarray/from-arraybufferis already under way, which would reclaim all of them at once.Related Issues
Related issues: Parent
Questions
Should this land before
tensor4dstarts, so the count stops at three?Other
No.
Checklist
RFC:.