Pooled memory for ndarrays
npm install ndarray-scratchndarray-scratch
===============
A simple wrapper for typedarray-pool. I got tired of manually constructing ndarrays from typedarrays, and so this module saves some keystrokes/sanity.


``javascript
var pool = require("ndarray-scratch")
//Create a temporary typed array
var x = pool.malloc([100,100])
//Do stuff with x
//Release x
pool.free(x)
`
npm install ndarray-scratch
`javascript`
var pool = require("ndarray-pool")
* shape is the shape of the array to allocatedtype
* is the dtype of the array to allocate (default "double")
Returns a temporary ndarray
*
shape is the shape of the resulting array
* dtype is the datatype of the array (default "double")Returns A temporary ndarray initialized to 0
$3
Creates a scratch ndarray initialized to 1*
shape is the shape of the resulting array
* dtype is the datatype of the array (default "double")Returns A temporary ndarray initialized to 1
$3
Creates a scratch ndarray initialized to 1 if all indices equal, 0 otherwise.*
shape is the shape of the resulting array
* dtype is the datatype of the array (default "double")Returns A temporary ndarray initialized to the identity matrix
$3
Releases a temporary ndarray*
array is the ndarray to release.$3
Creates a copy of an ndarray with row-major order.*
array is an ndarrayReturns A temporary copy of
array`