Package Exports
- ndarray-prefix-sum
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ndarray-prefix-sum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ndarray-prefix-sum
Computes a prefix sum of an array, or in higher dimensions the summed area table of an image. Works both in node.js and in the browser. Built on top of ndarray.
Example
var ndarray = require("ndarray")
var prefixSum = require("ndarray-prefix-sum")
var x = ndarray(new Float32Array([1, 2, 3, 4, 5, 6]))
prefixSum(x)
for(var i=0; i<x.shape[0]; ++i) {
console.log(x.get(i))
}Install
npm install ndarray-prefix-sumAPI
require("ndarray-prefix-sum")(array)
Computes the prefix sum of array in place.
arrayis an ndarray
Returns array
##Credits (c) 2013 Mikola Lysenko. MIT License