Creates proxies for ndarrays. These give a logical view of a function as an ndarray.
Introduction
Proxy ndarrays work just like ndarrays, and can be used in all the same ways. However, unlike dense arrays they do not keep any storage and instead use a function to determine the contents of the array. Here is a simple example:
var proxy = require('ndarray-proxy')//Create a 10x10 proxy ndarrayvar x = proxy([10, 10], function(i, j) { console.log('Called:', i, j) return 10*i + j})x.get(1,2) //Prints out: Called: 1 2x.get(7,8) //Prints out: Called: 7 8
It is possible to slice the view of a proxy ndarray, just like a regular ndarray: