package
Shifts ndarrays
npm install ndarray-translateGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 10 packages.
42.0 kB
Includes dependencies.
3 direct dependencies.
Shifts an ndarray by some integer shift.
var lena = require("luminance")(require("lena"))
var translate = require("ndarray-translate")
translate(lena, [100
Registry package owners.
This generates the following image:

npm install ndarray-translaterequire("ndarray-translate")(array, shift)Translates array by shift amount in place.
array is an ndarrayshift is a vector with length equal to the dimension of the array representing the amount to shfit by. Coordinates for the shift get rounded to nearest integer.Returns array
(c) 2013 Mikola Lysenko. MIT License