
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
ndarray-tile
Advanced tools
Repeat an ndarray
This module takes an input ndarray and repeats it some number of times in each dimension.
var tile = require('ndarray-tile')
var ndarray = require('ndarray')
// Repeat a vector:
tile(ndarray(new Float64Array([1, 2, 3])), [2])
// => 1 2 3 1 2 3
// Repeat a vector in a second dimension:
tile(ndarray(new Float64Array([1, 2, 3])), [1, 2])
// => 1 1
// 2 2
// 3 3
// Tile a matrix in two dimensions:
tile(ndarray(new Float64Array([1, 2, 3, 4]), 2, 2]), [2, 2])
// => 1 2 1 2
// 3 4 3 4
// 1 2 1 2
// 3 4 3 4
$ npm install ndarray-tile
require('ndarray-tile')([output,] input, reps)Tile ndarray input a number of times according to reps in each dimension.
Arguments:
output (optional): Optional output array. If not provided, storage is allocated using ndarray-scratch.input: The input ndarray to be tiledreps: An Array containing The number of repetitions in each dimension. Each entry must be an integer greater than zero.
reps is less than the dimemsionality of input, the ommitted dimensions are implicitly assumed to be one.input, then input is tiled in the new dimensions as specified.Returns: a reference to the tiled output
© 2016 Ricky Reusser. MIT License.
FAQs
Repeat an ndarray
The npm package ndarray-tile receives a total of 129 weekly downloads. As such, ndarray-tile popularity was classified as not popular.
We found that ndarray-tile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.