Package Exports
- ndarray-fill
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-fill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ndarray-fill
Initialize an ndarray with a function.
Example
var zeros = require("zeros")
var fill = require("ndarray-fill")
var x = zeros([5, 5])
fill(x, function(i,j) {
return 10*i + j
})
//Now x =
//
// 0 1 2 3 4
// 10 11 12 13 14
// 20 21 22 23 24
// 30 31 32 33 34
//Install
npm install ndarray-fillrequire("ndarray-fill")(array, func)
Fills an ndarray with a pattern
arrayis an ndarray which will be initializedfuncis a function that will be used to initialize the array
Returns An initialized ndarray
Credits
(c) 2013 Mikola Lysenko. MIT License