Scratch memory
npm install scratchscratch
=======
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
* n is the length of the array
* dtype is an optional string which specifies the type of the typed array to return. Possible options are:
+ "uint8"
+ "uint16"
+ "uint32"
+ "int8"
+ "int16"
+ "int32"
+ "float32"
+ "float64"
+ undefined - Returns an ArrayBuffer
Returns A typed array of length n