This package has been deprecated
Use typedarray-pool instead
Reuse scratch memory for intermediate calculations. This is useful for avoiding costly reallocations and for keeping temporary array data in hot cache between procedure calls.
npm install scratch
Returns a temporary array buffer for intermediate calculations.
nis the length of the array
dtypeis an optional string which specifies the type of the typed array to return. Possible options are:
undefined- Returns an ArrayBuffer
Returns A typed array of length
This module is non-reentrant. Once you have allocated scratch memory, you should not call any submodules, or else they may overwrite the contents of the data in scratch. You should only use this module if you know what you are doing.
(c) 2013 Mikola Lysenko. MIT License