# ndarray-pack

> Packs an array-of-arrays into a single ndarray

Latest version **1.2.1** (published 2016-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install ndarray-pack
pnpm add ndarray-pack
yarn add ndarray-pack
bun add ndarray-pack
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2016-08-02 |
| First published | 2013-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko, rreusser, planeshifter, jaspervdg, hughsk, substack |
| Keywords | ndarray, numeric, array, nested, pack, typedarray, memory |

## Links

- npm: https://www.npmjs.com/package/ndarray-pack
- Repository: https://github.com/mikolalysenko/ndarray-pack
- Homepage: https://github.com/mikolalysenko/ndarray-pack#readme
- Issues: https://github.com/mikolalysenko/ndarray-pack/issues
- npm.io page: https://npm.io/package/ndarray-pack

## Dependencies (2)

- [ndarray](https://npm.io/package/ndarray.md) ^1.0.13
- [cwise-compiler](https://npm.io/package/cwise-compiler.md) ^1.1.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2016-08-02
- 1.2.0 — 2015-12-25
- 1.1.1 — 2014-04-19
- 1.1.0 — 2014-04-13
- 1.0.1 — 2013-06-26
- 1.0.0 — 2013-06-26
- 0.0.1 — 2013-05-15
- 0.0.0 — 2013-05-15

## README

ndarray-pack
============
Converts an array-of-arrays (ie [numeric.js array](http://www.numericjs.com/)) into  a packed [ndarray](https://github.com/mikolalysenko/ndarray).

Example
=======
```javascript
//First create a numeric.js style array:
var x = [[1, 0, 1],
         [0, 1, 1],
         [0, 0, 1],
         [1, 0, 0]]

var y = require("ndarray-pack")(x)
```

Install
=======

    npm install ndarray-pack

### `require("ndarray-pack")(nested_array[,out])`
Converts the nested array into a packed ndarray.

* `nested_array` is an array-of-arrays (ie a numeric.js array)
* `out` is an optional ndarray that gets the result of unpacking `array`

**Returns** A packed ndarray representation of the nested arrays.

# Credits
(c) 2013 Mikola Lysenko. MIT License

---
_Source: https://npm.io/package/ndarray-pack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
